26 lines
794 B
C#
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;
|
|
}
|
|
}
|