public BackupManager(ICompressionProvider compressionProvider, IBackupProvider backupProvider, ICryptoProvider cryptoProvider, IUploadProvider uploadProvider, ILogger logger) { _compressionProvider = compressionProvider; _backupProvider = backupProvider; _cryptoProvider = cryptoProvider; _uploadProvider = uploadProvider; _logger = logger; }
/// <summary> /// 向提供者键值集合中添加上传提供者。 /// </summary> /// <param name="uploadProvider">上传提供者。</param> public static void Register(IUploadProvider uploadProvider) { Providers.Add(uploadProvider.GetUploadProviderKey(), uploadProvider); }