mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 17:48:15 +08:00
Upgrade Projects (#900)
* Upgrade Projects * Push to trigger builds * Tried Thread Sleep before deleting file * FileDeleteTryCatch * Updated from AspnetCore All to App * Travis version Upgrade (.net core 2.2) * dotnet 2.2.105
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@ -15,8 +15,10 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
|
||||
<PackageReference Include="Ocelot" Version="5.5.7" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.2.5" />
|
||||
<PackageReference Include="Ocelot" Version="13.5.1" />
|
||||
<PackageReference Include="Ocelot.Provider.Eureka" Version="13.5.1" />
|
||||
<PackageReference Include="Ocelot.Provider.Polly" Version="13.5.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -1,4 +1,7 @@
|
||||
namespace ApiGateway
|
||||
using Ocelot.Provider.Eureka;
|
||||
using Ocelot.Provider.Polly;
|
||||
|
||||
namespace ApiGateway
|
||||
{
|
||||
using Microsoft.AspNetCore;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
@ -27,7 +30,9 @@
|
||||
})
|
||||
.ConfigureServices(s =>
|
||||
{
|
||||
s.AddOcelot();
|
||||
s.AddOcelot()
|
||||
.AddEureka()
|
||||
.AddPolly();
|
||||
})
|
||||
.Configure(a =>
|
||||
{
|
||||
|
Reference in New Issue
Block a user