You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 lines
1.5 KiB

using Lamar;
using YellowAIRepo = DealerSelection.Api.Infrastructure.YellowAI;
using MulesoftRepo = DealerSelection.Api.Infrastructure.Mulesoft;
using AssignDealerRepo = DealerSelection.Api.Infrastructure.AssignDealer;
using Customerdetail = DealerSelection.Api.Infrastructure.CustomerDetail;
using JwtRepo = DealerSelection.Api.Infrastructure.Jwt;
using CCAvenue = DealerSelection.Api.Infrastructure.CCAvenue;
using BatchJob = DealerSelection.Api.Infrastructure.BatchJob;
namespace DealerSelection.DependencyInjection;
public class InfrastructureRegistry : ServiceRegistry
{
public InfrastructureRegistry()
{
For<MulesoftRepo.IRepository>()
.Use<MulesoftRepo.Repository>()
.Ctor<string>().Is("BOOKING")
.Transient();
For<JwtRepo.IJwtRepository>()
.Use<JwtRepo.JwtRepository>()
.Ctor<string>().Is("BOOKING")
.Transient();
For<AssignDealerRepo.IRepository>()
.Use<AssignDealerRepo.Repository>()
.Ctor<string>().Is("BOOKING")
.Transient();
For<Customerdetail.IRepository>()
.Use<Customerdetail.Repository>()
.Ctor<string>().Is("BOOKING")
.Transient();
For<CCAvenue.IRepository>()
.Use<CCAvenue.Repository>()
.Ctor<string>().Is("BOOKING")
.Transient();
For<YellowAIRepo.IRepository>()
.Use<YellowAIRepo.Repository>()
.Ctor<string>().Is("BOOKING")
.Transient();
For<BatchJob.IRepository>()
.Use<BatchJob.Repository>()
.Ctor<string>().Is("BOOKING")
.Transient();
}
}