Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
 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;
 }