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.
37 lines
1.1 KiB
37 lines
1.1 KiB
using Lamar;
|
|
|
|
using InfoBipRepo = DealerSelection.Api.Infrastructure.InfoBip;
|
|
using MulesoftRepo = DealerSelection.Api.Infrastructure.Mulesoft;
|
|
using AssignDealerRepo = DealerSelection.Api.Infrastructure.AssignDealer;
|
|
using Customerdetail = DealerSelection.Api.Infrastructure.CustomerDetail;
|
|
using JwtRepo = DealerSelection.Api.Infrastructure.Jwt;
|
|
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.IAssignDealerRepository>()
|
|
.Use<AssignDealerRepo.Repository>()
|
|
.Ctor<string>().Is("BOOKING")
|
|
.Transient();
|
|
|
|
For<Customerdetail.IRepository>()
|
|
.Use<Customerdetail.Repository>()
|
|
.Ctor<string>().Is("BOOKING")
|
|
.Transient();
|
|
|
|
}
|
|
|
|
}
|