mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
Added cancelation token to request
+ overload
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
@@ -17,5 +18,14 @@ namespace Octokit.Internal
|
||||
/// <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>
|
||||
/// <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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user