25 lines
876 B
C#
25 lines
876 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using NetworkResurrector.Application.Services;
|
|
using NetworkResurrector.Application.Stores;
|
|
using NetworkResurrector.Domain.Services;
|
|
|
|
namespace NetworkResurrector.Application
|
|
{
|
|
public static class DependencyInjectionExtensions
|
|
{
|
|
public static void AddApplicationServices(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IParamProvider, ParamProvider>();
|
|
services.AddStores();
|
|
services.AddSingleton<IValidationService, ValidationService>();
|
|
services.AddSingleton<IPingService, PingService>();
|
|
services.AddSingleton<IShutdownService, ShutdownService>();
|
|
}
|
|
|
|
private static void AddStores(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<ISecurityStore, SecurityStore>();
|
|
}
|
|
}
|
|
}
|