src/Picturepark.SDK.V1/Partial/TransferClient.cs
/// <summary>Transfers the uploaded files and waits for its completions.</summary>
/// <param name="transfer">The transfer.</param>
/// <param name="createRequest">The create request.</param>
/// <param name="timeout">The timeout to wait for completion.</param>
/// <param name="cancellationToken">The cancellcation token.</param>
/// <returns>The task.</returns>
Transfers the uploaded files and waits for its completions.
Transfers the uploaded files and waits for its completions .
public async Task ImportAndWaitForCompletionAsync(Transfer transfer, ImportTransferRequest createRequest, TimeSpan? timeout = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var importedTransfer = await ImportTransferAsync(transfer.Id, createRequest, cancellationToken).ConfigureAwait(false);
            await _businessProcessClient.WaitForCompletionAsync(importedTransfer.BusinessProcessId, timeout, cancellationToken).ConfigureAwait(false);
        }
public async Task ImportAndWaitForCompletionAsync ( Transfer transfer , ImportTransferRequest createRequest , TimeSpan ? timeout = null , CancellationToken cancellationToken = default ( CancellationToken ) ) { var importedTransfer = await ImportTransferAsync ( transfer . Id , createRequest , cancellationToken ) . ConfigureAwait ( false ) ; await _businessProcessClient . WaitForCompletionAsync ( importedTransfer . BusinessProcessId , timeout , cancellationToken ) . ConfigureAwait ( false ) ; }
Transfers the uploaded files and waits for its completions.
Transfers the uploaded files and waits for its completions .
None
transfer
Transfer
None
createRequest
ImportTransferRequest
The create request.
The create request .
timeout
TimeSpan?
The timeout to wait for completion.
The timeout to wait for completion .
cancellationToken
CancellationToken
The cancellcation token.
The cancellcation token .