src/Picturepark.SDK.V1/Partial/TransferClient.cs
/// <summary>Creates a transfer and waits for its completion.</summary>
/// <param name="request">The create request.</param>
/// <param name="timeout">The timeout to wait for completion.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The transfer.</returns>
Creates a transfer and waits for its completion.
Creates a transfer and waits for its completion .
public async Task<CreateTransferResult> CreateAndWaitForCompletionAsync(CreateTransferRequest request, TimeSpan? timeout = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var transfer = await CreateAsync(request, cancellationToken).ConfigureAwait(false);
            await _businessProcessClient.WaitForCompletionAsync(transfer.BusinessProcessId, timeout, cancellationToken).ConfigureAwait(false);
            return new CreateTransferResult(transfer, request.Files);
        }
public async Task < CreateTransferResult > CreateAndWaitForCompletionAsync ( CreateTransferRequest request , TimeSpan ? timeout = null , CancellationToken cancellationToken = default ( CancellationToken ) ) { var transfer = await CreateAsync ( request , cancellationToken ) . ConfigureAwait ( false ) ; await _businessProcessClient . WaitForCompletionAsync ( transfer . BusinessProcessId , timeout , cancellationToken ) . ConfigureAwait ( false ) ; return new CreateTransferResult ( transfer , request . Files ) ; }
Creates a transfer and waits for its completion.
Creates a transfer and waits for its completion .
None
request
CreateTransferRequest
The create request.
The create request .
timeout
TimeSpan?
The timeout to wait for completion.
The timeout to wait for completion .
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .