Files
AgileConfig/AgileConfig.Server.Service/ServiceCollectionExt.cs
T
2020-05-11 00:21:42 +08:00

21 lines
804 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<IRemoteServerNodeActionProxy, RemoteServerNodeProxy>();
sc.AddScoped<IRemoteServerNodeManager, RemoteServerNodeManager>();
sc.AddScoped<ISysLogService, SysLogService>();
}
}
}