Remove Type parameter for IHttpClient send method

This keeps the IHttpClient interface simpler and ensures the
deserialization responsibility lies outside of that class. It only
needed the Type parameter for a special case that could be handled in a
better way.
This commit is contained in:
Haacked
2015-01-01 19:12:22 -08:00
parent 37dec8491c
commit 49f95d40f1
16 changed files with 183 additions and 152 deletions
+2 -3
View File
@@ -14,10 +14,9 @@ namespace Octokit.Internal
/// <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>
/// <param name="cancellationToken">Used to cancel the request</param>
/// <returns>A <see cref="Task{T}" /> of <see cref="IResponse{T}"/></returns>
Task<IResponse<T>> Send<T>(IRequest request, CancellationToken cancellationToken);
/// <returns>A <see cref="Task" /> of <see cref="IResponse"/></returns>
Task<IResponse> Send(IRequest request, CancellationToken cancellationToken);
}
}