Esempio n. 1
0
 public static DIHelper AddEncryptionSettingsHelperService(this DIHelper services)
 {
     services.TryAddScoped <EncryptionSettingsHelper>();
     services.TryAddSingleton <AscCacheNotify>();
     return(services
            .AddCoreConfigurationService());
 }
Esempio n. 2
0
        public static DIHelper AddBackupPortalTaskService(this DIHelper services)
        {
            if (services.TryAddScoped <BackupPortalTask>())
            {
                return(services
                       .AddCoreConfigurationService()
                       .AddStorageFactoryService()
                       .AddModuleProvider()
                       .AddBackupsContext()
                       .AddTenantManagerService()
                       .AddDbFactoryService());
            }

            return(services);
        }
Esempio n. 3
0
        public static DIHelper AddRestorePortalTaskService(this DIHelper services)
        {
            if (services.TryAddScoped <RestorePortalTask>())
            {
                services.TryAddSingleton <AscCacheNotify>();
                return(services
                       .AddCoreConfigurationService()
                       .AddStorageFactoryService()
                       .AddStorageFactoryConfigService()
                       .AddModuleProvider()
                       .AddCoreBaseSettingsService()
                       .AddLicenseReaderService());
            }

            return(services);
        }
Esempio n. 4
0
 public static DIHelper AddClientService(this DIHelper services)
 {
     services.TryAddScoped <Client>();
     return(services
            .AddCoreConfigurationService());
 }