Skip to content

Support CancellationToken usage for async API calls #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
476 changes: 238 additions & 238 deletions sdk/src/DocuSign.eSign/Api/AccountsApi.cs

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions sdk/src/DocuSign.eSign/Api/AuthenticationApi.cs

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions sdk/src/DocuSign.eSign/Api/BillingApi.cs

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions sdk/src/DocuSign.eSign/Api/BulkEnvelopesApi.cs

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions sdk/src/DocuSign.eSign/Api/BulkProcessDataApi.cs

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions sdk/src/DocuSign.eSign/Api/BulkProcessDataSendApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public ApiResponse<BulkProcessResponse> CreateBulkProcessRequestToQueueWithHttpI
/// <param name="bulkProcessListId"></param>
/// <param name="bulkProcessRequest"> (optional)</param>
/// <returns>Task of BulkProcessResponse</returns>
public async System.Threading.Tasks.Task<BulkProcessResponse> CreateBulkProcessRequestToQueueAsync(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null)
public async System.Threading.Tasks.Task<BulkProcessResponse> CreateBulkProcessRequestToQueueAsync(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null, System.Threading.CancellationToken cancellationToken = default)
{
ApiResponse<BulkProcessResponse> localVarResponse = await CreateBulkProcessRequestToQueueAsyncWithHttpInfo(accountId, processAction, bulkProcessListId, bulkProcessRequest);
return localVarResponse.Data;
Expand All @@ -341,7 +341,7 @@ public async System.Threading.Tasks.Task<BulkProcessResponse> CreateBulkProcessR
/// <param name="bulkProcessListId"></param>
/// <param name="bulkProcessRequest"> (optional)</param>
/// <returns>Task of ApiResponse (BulkProcessResponse)</returns>
public async System.Threading.Tasks.Task<ApiResponse<BulkProcessResponse>> CreateBulkProcessRequestToQueueAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null)
public async System.Threading.Tasks.Task<ApiResponse<BulkProcessResponse>> CreateBulkProcessRequestToQueueAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null, System.Threading.CancellationToken cancellationToken = default)
{
// verify the required parameter 'accountId' is set
if (accountId == null)
Expand Down Expand Up @@ -399,7 +399,7 @@ public async System.Threading.Tasks.Task<ApiResponse<BulkProcessResponse>> Creat

// make the HTTP request
DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken)

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand Down Expand Up @@ -454,7 +454,7 @@ public ApiResponse<BulkProcessResult> DeleteBulkProcessListWithHttpInfo(string a
/// <param name="processAction"></param>
/// <param name="bulkProcessListId"></param>
/// <returns>Task of BulkProcessResult</returns>
public async System.Threading.Tasks.Task<BulkProcessResult> DeleteBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId)
public async System.Threading.Tasks.Task<BulkProcessResult> DeleteBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default)
{
ApiResponse<BulkProcessResult> localVarResponse = await DeleteBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId);
return localVarResponse.Data;
Expand All @@ -468,7 +468,7 @@ public async System.Threading.Tasks.Task<BulkProcessResult> DeleteBulkProcessLis
/// <param name="processAction"></param>
/// <param name="bulkProcessListId"></param>
/// <returns>Task of ApiResponse (BulkProcessResult)</returns>
public async System.Threading.Tasks.Task<ApiResponse<BulkProcessResult>> DeleteBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId)
public async System.Threading.Tasks.Task<ApiResponse<BulkProcessResult>> DeleteBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default)
{
// verify the required parameter 'accountId' is set
if (accountId == null)
Expand Down Expand Up @@ -518,7 +518,7 @@ public async System.Threading.Tasks.Task<ApiResponse<BulkProcessResult>> DeleteB

// make the HTTP request
DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken)

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand Down Expand Up @@ -572,7 +572,7 @@ public ApiResponse<Object> GetBulkProcessListWithHttpInfo(string accountId, stri
/// <param name="processAction"></param>
/// <param name="bulkProcessListId"></param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId)
public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default)
{
await GetBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId);
}
Expand All @@ -585,7 +585,7 @@ public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountI
/// <param name="processAction"></param>
/// <param name="bulkProcessListId"></param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> GetBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId)
public async System.Threading.Tasks.Task<ApiResponse<Object>> GetBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default)
{
// verify the required parameter 'accountId' is set
if (accountId == null)
Expand Down Expand Up @@ -635,7 +635,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> GetBulkProcessList

// make the HTTP request
DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken)

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand Down Expand Up @@ -690,7 +690,7 @@ public ApiResponse<Object> UpdateBulkProcessListWithHttpInfo(string accountId, s
/// <param name="processAction"></param>
/// <param name="bulkProcessListId"></param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId)
public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default)
{
await UpdateBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId);
}
Expand All @@ -703,7 +703,7 @@ public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accou
/// <param name="processAction"></param>
/// <param name="bulkProcessListId"></param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId)
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default)
{
// verify the required parameter 'accountId' is set
if (accountId == null)
Expand Down Expand Up @@ -753,7 +753,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateBulkProcessL

// make the HTTP request
DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken)

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand Down
Loading