|
|
@ -1,6 +1,7 @@ |
|
|
using EShopOnAbp.Shared.Hosting.AspNetCore; |
|
|
using EShopOnAbp.Shared.Hosting.AspNetCore; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Ocelot.DependencyInjection; |
|
|
using Ocelot.DependencyInjection; |
|
|
|
|
|
using Ocelot.Provider.Consul; |
|
|
using Ocelot.Provider.Polly; |
|
|
using Ocelot.Provider.Polly; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
@ -20,6 +21,7 @@ namespace EShopOnAbp.Shared.Hosting.Gateways |
|
|
var configuration = context.Services.GetConfiguration(); |
|
|
var configuration = context.Services.GetConfiguration(); |
|
|
|
|
|
|
|
|
context.Services.AddOcelot(configuration) |
|
|
context.Services.AddOcelot(configuration) |
|
|
|
|
|
.AddConsul() |
|
|
.AddPolly(); |
|
|
.AddPolly(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|