mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
removed redundant Send<T> from IHttpClient
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
@@ -28,11 +26,6 @@ namespace Octokit.Internal
|
||||
this.webProxy = webProxy;
|
||||
}
|
||||
|
||||
public Task<IResponse<T>> Send<T>(IRequest request)
|
||||
{
|
||||
return Send<T>(request, CancellationToken.None);
|
||||
}
|
||||
|
||||
public async Task<IResponse<T>> Send<T>(IRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, "request");
|
||||
@@ -51,7 +44,6 @@ namespace Octokit.Internal
|
||||
httpOptions.Proxy = webProxy;
|
||||
}
|
||||
|
||||
|
||||
var http = new HttpClient(httpOptions)
|
||||
{
|
||||
BaseAddress = request.BaseAddress,
|
||||
|
||||
@@ -11,14 +11,6 @@ namespace Octokit.Internal
|
||||
/// </remarks>
|
||||
public interface IHttpClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Sends the specified request and returns a response.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of data to send</typeparam>
|
||||
/// <param name="request">A <see cref="IRequest"/> that represents the HTTP request</param>
|
||||
/// <returns>A <see cref="Task{T}" /> of <see cref="IResponse{T}"/></returns>
|
||||
Task<IResponse<T>> Send<T>(IRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Sends the specified request and returns a response.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user