Browse Source

Added yarp to shared gateway hosting

pull/97/head
Galip Tolga Erdem 5 years ago
parent
commit
e55ce11c4e
  1. 1
      shared/EShopOnAbp.Shared.Hosting.Gateways/EShopOnAbp.Shared.Hosting.Gateways.csproj
  2. 4
      shared/EShopOnAbp.Shared.Hosting.Gateways/EShopOnAbpSharedHostingGatewaysModule.cs

1
shared/EShopOnAbp.Shared.Hosting.Gateways/EShopOnAbp.Shared.Hosting.Gateways.csproj

@ -7,6 +7,7 @@
<ItemGroup>
<PackageReference Include="Ocelot" Version="18.0.0" />
<PackageReference Include="Ocelot.Provider.Polly" Version="18.0.0" />
<PackageReference Include="Yarp.ReverseProxy" Version="1.0.0" />
</ItemGroup>
<ItemGroup>

4
shared/EShopOnAbp.Shared.Hosting.Gateways/EShopOnAbpSharedHostingGatewaysModule.cs

@ -17,8 +17,8 @@ namespace EShopOnAbp.Shared.Hosting.Gateways
{
var configuration = context.Services.GetConfiguration();
context.Services.AddOcelot(configuration)
.AddPolly();
// context.Services.AddOcelot(configuration)
// .AddPolly();
}
}
}
Loading…
Cancel
Save