chatbot/Chatbot.Api.Application/DependencyInjectionExtensio...

16 lines
460 B
C#
Raw Permalink Normal View History

2020-06-06 18:29:20 +03:00
using Chatbot.Api.Application.Services;
using Chatbot.Api.Domain.Services;
using Microsoft.Extensions.DependencyInjection;
namespace Chatbot.Application
{
public static class DependencyInjectionExtensions
{
public static void AddApplicationServices(this IServiceCollection services)
{
services.AddSingleton<IParamProvider, ParamProvider>();
services.AddScoped<IUserService, UserService>();
}
}
}