Files
schengen-visa/SchengenVisaApi/ApplicationLayer/DependencyInjection.cs
2024-08-15 23:42:18 +03:00

17 lines
495 B
C#

using ApplicationLayer.VisaApplications.Handlers;
using Microsoft.Extensions.DependencyInjection;
namespace ApplicationLayer;
/// Provides methods to add services to DI-container
public static class DependencyInjection
{
/// Add services for Application layer
public static IServiceCollection AddApplicationLayer(this IServiceCollection services)
{
services.AddScoped<IVisaApplicationsRequestHandler, VisaApplicationRequestsHandler>();
return services;
}
}