Esempio n. 1
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;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 /// <param name="config">Provides access to file system functionality
 /// that is required to manage transfers.</param>
 public LocalDownloadHandler(LocalTransferConfig config)
 {
     Ensure.ArgumentNotNull(config, "config");
     Config = config;
 }