public static DIHelper AddEncryptionSettingsHelperService(this DIHelper services) { services.TryAddScoped <EncryptionSettingsHelper>(); services.TryAddSingleton <AscCacheNotify>(); return(services .AddCoreConfigurationService()); }
public static DIHelper AddBackupPortalTaskService(this DIHelper services) { if (services.TryAddScoped <BackupPortalTask>()) { return(services .AddCoreConfigurationService() .AddStorageFactoryService() .AddModuleProvider() .AddBackupsContext() .AddTenantManagerService() .AddDbFactoryService()); } return(services); }
public static DIHelper AddRestorePortalTaskService(this DIHelper services) { if (services.TryAddScoped <RestorePortalTask>()) { services.TryAddSingleton <AscCacheNotify>(); return(services .AddCoreConfigurationService() .AddStorageFactoryService() .AddStorageFactoryConfigService() .AddModuleProvider() .AddCoreBaseSettingsService() .AddLicenseReaderService()); } return(services); }
public static DIHelper AddClientService(this DIHelper services) { services.TryAddScoped <Client>(); return(services .AddCoreConfigurationService()); }