mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-19 21:41:49 +08:00
22 lines
861 B
C#
22 lines
861 B
C#
using AgileConfig.Server.IService;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace AgileConfig.Server.Service
|
|
{
|
|
public static class ServiceCollectionExt
|
|
{
|
|
public static void AddBusinessServices(this IServiceCollection sc)
|
|
{
|
|
sc.AddScoped<IAppService, AppService>();
|
|
sc.AddScoped<IConfigService, ConfigService>();
|
|
sc.AddScoped<IServerNodeService, ServerNodeService>();
|
|
sc.AddScoped<IModifyLogService, ModifyLogService>();
|
|
sc.AddScoped<ISettingService, SettingService>();
|
|
sc.AddScoped<IRemoteServerNodeProxy, RemoteServerNodeProxy>();
|
|
sc.AddScoped<ISysLogService, SysLogService>();
|
|
sc.AddScoped<IAppBasicAuthService, AppBasicAuthService>();
|
|
sc.AddScoped<IAdmBasicAuthService, AdmBasicAuthService>();
|
|
}
|
|
}
|
|
}
|