Files
AgileConfig/AgileConfig.Server.Service/ServiceCollectionExt.cs
T
2020-06-17 22:44:24 +08:00

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>();
}
}
}