http-api/src/Configuration/Infrastructure/Configuration.cs
cuqmbr 4c8ca2e14f
All checks were successful
/ tests (push) Successful in 34s
/ build (push) Successful in 6m51s
/ build-docker (push) Successful in 4m23s
add LiqPay integration for ticket purchase
2025-05-25 21:34:36 +03:00

26 lines
794 B
C#

using cuqmbr.TravelGuide.Application.Common.Interfaces.Services;
using cuqmbr.TravelGuide.Infrastructure.Services;
using Microsoft.Extensions.DependencyInjection;
namespace cuqmbr.TravelGuide.Configuration.Infrastructure;
public static class Configuration
{
public static IServiceCollection ConfigureInfrastructure(
this IServiceCollection services)
{
services
.AddHttpClient();
services
.AddScoped<
CurrencyConverterService,
ExchangeApiCurrencyConverterService>()
.AddScoped<
cuqmbr.TravelGuide.Application.Common.Interfaces.Services.LiqPayPaymentService,
cuqmbr.TravelGuide.Infrastructure.Services.LiqPayPaymentService>();
return services;
}
}