2020-07-09 02:58:04 +03:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using NetworkResurrector.Application.Services;
|
2020-07-10 00:29:39 +03:00
|
|
|
|
using NetworkResurrector.Application.Stores;
|
2020-07-09 02:58:04 +03:00
|
|
|
|
using NetworkResurrector.Domain.Services;
|
|
|
|
|
|
|
|
|
|
namespace NetworkResurrector.Application
|
|
|
|
|
{
|
|
|
|
|
public static class DependencyInjectionExtensions
|
|
|
|
|
{
|
|
|
|
|
public static void AddApplicationServices(this IServiceCollection services)
|
|
|
|
|
{
|
|
|
|
|
services.AddSingleton<IParamProvider, ParamProvider>();
|
|
|
|
|
services.AddScoped<IUserService, UserService>();
|
2020-07-10 00:29:39 +03:00
|
|
|
|
services.AddStores();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void AddStores(this IServiceCollection services)
|
|
|
|
|
{
|
|
|
|
|
services.AddSingleton<ISecurityStore, SecurityStore>();
|
2020-07-09 02:58:04 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|