Esempio n. 1
0
 /// <summary>
 /// Completes a given file transfer - invoking this operation
 /// closes and removes the transfer from the service. It is highly
 /// recommended to invoke this method after finishing a transfer
 /// in order to free used/locked resources as soon as possible.<br/>
 /// In case of an upload, setting the <see cref="DataBlockInfo.IsLastBlock"/>
 /// property of the last submitted data block implicitly calls this method.
 /// </summary>
 /// <param name="transferId">Identifies the transfer and resource.</param>
 /// <returns>The new status of the transfer, which is <see cref="TransferStatus.Completed"/>
 /// in case of a known transfer. If the transfer is not known (maybe because it was aborted
 /// by the system), this method returns <see cref="TransferStatus.UnknownTransfer"/>.</returns>
 /// <exception cref="UnknownTransferException">In case the <paramref name="transferId"/>
 /// does not refer to an active transfer.</exception>
 protected override TransferStatus CompleteTransferImpl(string transferId)
 {
     return(ReaderService.CompleteTransfer(transferId));
 }