/// <summary>
 /// Initializes a new instance of the <see cref="TransferCheckpoint"/> class.
 /// </summary>
 /// <param name="other">Another TransferCheckpoint object. </param>
 internal TransferCheckpoint(TransferCheckpoint other)
 {
     if (null == other)
     {
         this.TransferCollection = new TransferCollection <Transfer>();
     }
     else
     {
         this.TransferCollection = other.TransferCollection.Copy();
     }
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TransferContext" /> class.
        /// </summary>
        /// <param name="checkpoint">An <see cref="TransferCheckpoint"/> object representing the last checkpoint from which the transfer continues on.</param>
        protected TransferContext(TransferCheckpoint checkpoint)
        {
            this.LogLevel = OperationContext.DefaultLogLevel;

            if (checkpoint == null)
            {
#if BINARY_SERIALIZATION
                this.Checkpoint = new TransferCheckpoint();
#else
                this.Checkpoint = new TransferCheckpoint(other: null);
#endif
            }
            else
            {
                this.Checkpoint = checkpoint.Copy();
            }
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SingleTransferContext" /> class.
 /// </summary>
 /// <param name="checkpoint">An <see cref="TransferCheckpoint"/> object representing the last checkpoint from which the transfer continues on.</param>
 public SingleTransferContext(TransferCheckpoint checkpoint)
     : base(checkpoint)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DirectoryTransferContext" /> class.
 /// </summary>
 /// <param name="checkpoint">An <see cref="TransferCheckpoint"/> object representing the last checkpoint from which the transfer continues on.</param>
 public DirectoryTransferContext(TransferCheckpoint checkpoint)
     : base(checkpoint)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TransferCheckpoint"/> class.
 /// </summary>
 /// <param name="other">Another TransferCheckpoint object. </param>
 private TransferCheckpoint(TransferCheckpoint other)
 {
     this.TransferCollection = other.TransferCollection.Copy();
 }