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.
24 lines
750 B
24 lines
750 B
using EShopOnAbp.Shared.Hosting.AspNetCore;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Ocelot.DependencyInjection;
|
|
using Ocelot.Provider.Polly;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace EShopOnAbp.Shared.Hosting.Gateways
|
|
{
|
|
[DependsOn(
|
|
typeof(EShopOnAbpSharedHostingAspNetCoreModule),
|
|
typeof(AbpAspNetCoreMvcUiMultiTenancyModule)
|
|
)]
|
|
public class EShopOnAbpSharedHostingGatewaysModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
var configuration = context.Services.GetConfiguration();
|
|
|
|
context.Services.AddOcelot(configuration)
|
|
.AddPolly();
|
|
}
|
|
}
|
|
}
|