Beispiel #1
0
        /// <summary>
        /// Initializes the service with a specific <see cref="ITransferStore{TTransfer}"/>
        /// that maintains running transfers.
        /// </summary>
        /// <param name="transferStore">Provides a storage mechanism for
        /// managed transfers.</param>
        /// <exception cref="ArgumentNullException">If <paramref name="transferStore"/>
        /// is a null reference.</exception>
        protected TransferHandlerBase(ITransferStore <TTransfer> transferStore)
        {
            Ensure.ArgumentNotNull(transferStore, "transferStore");

            TransferStore       = transferStore;
            ExpirationScheduler = new Scheduler();
        }
Beispiel #2
0
 /// <summary>
 /// Initializes the service with a specific <see cref="ITransferStore{TTransfer}"/>
 /// that maintains running transfers.
 /// </summary>
 /// <param name="configuration">Provides access to file system functionality
 /// that is required to manage transfers.</param>
 /// <param name="transferStore">Provides a storage mechanism for
 /// managed transfers.</param>
 public ZipUploadHandler(ZipTransferConfig configuration, ITransferStore <ZipUploadTransfer> transferStore)
     : base(transferStore)
 {
     Ensure.ArgumentNotNull(configuration, "configuration");
     Config = configuration;
 }
 /// <summary>
 /// Initializes the service with a specific <see cref="ITransferStore{TTransfer}"/>
 /// that maintains running transfers.
 /// </summary>
 /// <param name="transferStore">Provides a storage mechanism for
 /// managed transfers.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="transferStore"/>
 /// is a null reference.</exception>
 protected UploadHandlerBase(ITransferStore <TTransfer> transferStore)
     : base(transferStore)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Initializes the service with a specific <see cref="ITransferStore{TTransfer}"/>
 /// that maintains running transfers.
 /// </summary>
 /// <param name="config">Provides access to file system functionality
 /// that is required to manage transfers.</param>
 /// <param name="transferStore">Provides a storage mechanism for
 /// managed transfers.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="transferStore"/>
 /// is a null reference.</exception>
 public LocalDownloadHandler(ITransferStore <LocalDownloadTransfer> transferStore,
                             LocalTransferConfig config) : base(transferStore)
 {
     Ensure.ArgumentNotNull(config, "config");
     Config = config;
 }