public static DIHelper AddSocketServiceLauncher(this DIHelper services) { services.TryAddScoped <SocketServiceLauncher>(); return(services .AddCoreBaseSettingsService() .AddSignalrServiceClient()); }
public static DIHelper AddStylerService(this DIHelper services) { return(services .AddCoreBaseSettingsService() .AddInstanceCryptoService() .AddMailWhiteLabelSettingsService() ); }
public static DIHelper AddBaseCommonLinkUtilityService(this DIHelper services) { services.TryAddScoped <BaseCommonLinkUtility>(); return(services .AddCoreBaseSettingsService() .AddCoreSettingsService() .AddTenantManagerService()); }
public static DIHelper AddCoreSettingsService(this DIHelper services) { services.TryAddScoped <CoreSettings>(); services.TryAddScoped <CoreConfiguration>(); services.TryAddScoped <IConfigureOptions <CoreSettings>, ConfigureCoreSettings>(); return(services .AddCoreBaseSettingsService() .AddTenantService()); }
public static DIHelper AddGlobalFolderService(this DIHelper services) { services.TryAddScoped <GlobalFolder>(); return(services .AddCoreBaseSettingsService() .AddWebItemManager() .AddWebItemSecurity() .AddAuthContextService() .AddTenantManagerService() .AddUserManagerService() .AddSettingsManagerService() .AddGlobalStoreService()); }
public static DIHelper AddTenantService(this DIHelper services) { services.TryAddSingleton(typeof(ICacheNotify <>), typeof(KafkaCache <>)); services.TryAddSingleton <TenantDomainValidator>(); services.TryAddSingleton <TimeZoneConverter>(); services.TryAddSingleton <TenantServiceCache>(); services.TryAddScoped <DbTenantService>(); services.TryAddScoped <ITenantService, CachedTenantService>(); services.TryAddScoped <IConfigureOptions <DbTenantService>, ConfigureDbTenantService>(); services.TryAddScoped <IConfigureOptions <CachedTenantService>, ConfigureCachedTenantService>(); return(services .AddCoreBaseSettingsService() .AddTenantDbContextService()); }
public static DIHelper AddCustomizationConfigService(this DIHelper services) { services.TryAddTransient <CustomizationConfig <string> >(); services.TryAddTransient <CustomizationConfig <int> >(); return(services .AddCoreBaseSettingsService() .AddSettingsManagerService() .AddFileUtilityService() .AddFilesSettingsHelperService() .AddAuthContextService() .AddFileSecurityService() .AddDaoFactoryService() .AddGlobalFolderHelperService() .AddPathProviderService() .AddCustomerConfigService() .AddLogoConfigService()); }