コード例 #1
0
 public static DIHelper AddEncryptionSettingsHelperService(this DIHelper services)
 {
     services.TryAddScoped <EncryptionSettingsHelper>();
     services.TryAddSingleton <AscCacheNotify>();
     return(services
            .AddCoreConfigurationService());
 }
コード例 #2
0
ファイル: BackupPortalTask.cs プロジェクト: ztcyun/AppServer
        public static DIHelper AddBackupPortalTaskService(this DIHelper services)
        {
            if (services.TryAddScoped <BackupPortalTask>())
            {
                return(services
                       .AddCoreConfigurationService()
                       .AddStorageFactoryService()
                       .AddModuleProvider()
                       .AddBackupsContext()
                       .AddTenantManagerService()
                       .AddDbFactoryService());
            }

            return(services);
        }
コード例 #3
0
ファイル: RestorePortalTask.cs プロジェクト: ztcyun/AppServer
        public static DIHelper AddRestorePortalTaskService(this DIHelper services)
        {
            if (services.TryAddScoped <RestorePortalTask>())
            {
                services.TryAddSingleton <AscCacheNotify>();
                return(services
                       .AddCoreConfigurationService()
                       .AddStorageFactoryService()
                       .AddStorageFactoryConfigService()
                       .AddModuleProvider()
                       .AddCoreBaseSettingsService()
                       .AddLicenseReaderService());
            }

            return(services);
        }
コード例 #4
0
ファイル: Client.cs プロジェクト: shifangdunhuang/AppServer
 public static DIHelper AddClientService(this DIHelper services)
 {
     services.TryAddScoped <Client>();
     return(services
            .AddCoreConfigurationService());
 }