public void Deconstruct(out ILog log, out EncryptionSettingsHelper encryptionSettingsHelper, out TenantManager tenantManager, out NotifyHelper notifyHelper, out CoreBaseSettings coreBaseSettings, out StorageFactoryConfig storageFactoryConfig, out StorageFactory storageFactory, out ICacheNotify <ProgressEncryption> progressEncryption, out IConfiguration configuration) { log = Log; encryptionSettingsHelper = EncryptionSettingsHelper; tenantManager = TenantManager; notifyHelper = NotifyHelper; coreBaseSettings = CoreBaseSettings; storageFactoryConfig = StorageFactoryConfig; storageFactory = StorageFactory; progressEncryption = ProgressEncryption; configuration = Configuration; }
private void SaveNewSettings(EncryptionSettingsHelper encryptionSettingsHelper, ILog log) { if (IsEncryption) { EncryptionSettings.Status = EncryprtionStatus.Encrypted; } else { EncryptionSettings.Status = EncryprtionStatus.Decrypted; EncryptionSettings.Password = string.Empty; } encryptionSettingsHelper.Save(EncryptionSettings); log.Debug("Save new EncryptionSettings"); }
public EncryptionOperationScope(IOptionsMonitor <ILog> options, StorageFactoryConfig storageFactoryConfig, StorageFactory storageFactory, TenantManager tenantManager, CoreBaseSettings coreBaseSettings, NotifyHelper notifyHelper, EncryptionSettingsHelper encryptionSettingsHelper, IConfiguration configuration) { Log = options.CurrentValue; StorageFactoryConfig = storageFactoryConfig; StorageFactory = storageFactory; TenantManager = tenantManager; CoreBaseSettings = coreBaseSettings; NotifyHelper = notifyHelper; EncryptionSettingsHelper = encryptionSettingsHelper; Configuration = configuration; }