コード例 #1
0
ファイル: BackupManager.cs プロジェクト: daniefer/BackerUpper
 public BackupManager(ICompressionProvider compressionProvider,
                      IBackupProvider backupProvider,
                      ICryptoProvider cryptoProvider,
                      IUploadProvider uploadProvider,
                      ILogger logger)
 {
     _compressionProvider = compressionProvider;
     _backupProvider      = backupProvider;
     _cryptoProvider      = cryptoProvider;
     _uploadProvider      = uploadProvider;
     _logger = logger;
 }
コード例 #2
0
 /// <summary>
 /// 向提供者键值集合中添加上传提供者。
 /// </summary>
 /// <param name="uploadProvider">上传提供者。</param>
 public static void Register(IUploadProvider uploadProvider)
 {
     Providers.Add(uploadProvider.GetUploadProviderKey(), uploadProvider);
 }