Abp Vnext 的 Vue3 实现版本
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.
 
 
 
 
 
 

32 lines
908 B

using Microsoft.Extensions.DependencyInjection;
using Ocelot.DependencyInjection;
using Ocelot.Provider.Consul;
using Ocelot.Provider.Polly;
using Volo.Abp.Autofac;
using Volo.Abp.Modularity;
using Volo.Abp.Swashbuckle;
namespace CompanyName.ProjectName.Shared.Hosting.Gateways
{
[DependsOn(
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule))]
public class SharedHostingGatewayModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
ConfigureOcelot(context);
}
/// <summary>
/// Ocelot配置
/// </summary>
private static void ConfigureOcelot(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();
context.Services.AddOcelot(configuration).AddConsul().AddPolly();
}
}
}