mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-25 23:49:09 +00:00
4e804f61a6
* updated XML docs and added some missing bits. * prefer nameof(x) over literal "x"
17 lines
470 B
C#
17 lines
470 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Octokit.Internal;
|
|
|
|
namespace Octokit
|
|
{
|
|
public static class HttpClientExtensions
|
|
{
|
|
public static Task<IResponse> Send(this IHttpClient httpClient, IRequest request)
|
|
{
|
|
Ensure.ArgumentNotNull(httpClient, nameof(httpClient));
|
|
Ensure.ArgumentNotNull(request, nameof(request));
|
|
|
|
return httpClient.Send(request, CancellationToken.None);
|
|
}
|
|
}
|
|
} |