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.
35 lines
759 B
35 lines
759 B
using DealerSelection.Api;
|
|
using DealerSelection.Api.CommonUtil;
|
|
using DealerSelection.Api.Interface;
|
|
using DealerSelection.Common.HttpClient;
|
|
using DealerSelection.Common.Interfaces.HttpClient;
|
|
using Lamar;
|
|
|
|
namespace DealerSelection.DependencyInjection;
|
|
|
|
public class ApiRegistry : ServiceRegistry
|
|
{
|
|
public ApiRegistry()
|
|
{
|
|
|
|
For<IJwtTokenApi>()
|
|
.Use<JwtTokenApi>()
|
|
.Singleton();
|
|
|
|
For<IAssignDealerApi>()
|
|
.Use<AssignDealerApi>()
|
|
.Singleton();
|
|
|
|
For<IMulesoftApi>()
|
|
.Use<MulesoftApi>()
|
|
.Singleton();
|
|
|
|
For<IHttpClientHandler>()
|
|
.Use<MyHttpClientHandler>()
|
|
.Singleton();
|
|
For<IMulesoftTokenApi>()
|
|
.Use<MulesoftTokenApi>()
|
|
.Singleton();
|
|
|
|
}
|
|
}
|