mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-19 05:22:02 +08:00
20 lines
719 B
C#
20 lines
719 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>();
|
|
}
|
|
}
|
|
}
|