Skip to content

Commit bbdf7fc

Browse files
committed
update consul readme
1 parent 16f3246 commit bbdf7fc

File tree

7 files changed

+353
-72
lines changed

7 files changed

+353
-72
lines changed

src/Functional/Authentication/JwtBearerSample/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void ConfigureServices(IServiceCollection services)
5757
};
5858
});
5959

60-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
60+
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
6161
}
6262

6363
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

src/Functional/Authorization/AuthorizationSample/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void ConfigureServices(IServiceCollection services)
2828
})
2929
.AddCookie();
3030

31-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
31+
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
3232

3333
// services.AddAuthorization(options =>
3434
// {

src/Functional/Identity/IdentityServerIntegrationIdentity/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void ConfigureServices(IServiceCollection services)
4141
.AddEntityFrameworkStores<ApplicationDbContext>();
4242

4343

44-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
44+
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
4545
}
4646

4747
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

src/Functional/Identity/IdentityServerSample/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void ConfigureServices(IServiceCollection services)
2929
options.MinimumSameSitePolicy = SameSiteMode.None;
3030
});
3131

32-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
32+
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
3333

3434
// 配置IdentitryServer
3535
services.AddIdentityServer()

src/Microservice/ServiceDiscovery/ConsulDemo/ConsulDemo.sln

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28302.56
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.28315.86
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServiceA", "src\ServiceA\ServiceA.csproj", "{FD1506DC-F106-4700-87A1-A012D0C6056F}"
77
EndProject
@@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
Readme.md = Readme.md
1515
EndProjectSection
1616
EndProject
17-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientDemo", "src\ClientDemo\ClientDemo.csproj", "{95EF4EBC-3989-4DF0-A920-D99263677FCE}"
17+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientDemo", "src\ClientDemo\ClientDemo.csproj", "{95EF4EBC-3989-4DF0-A920-D99263677FCE}"
1818
EndProject
1919
Global
2020
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/Microservice/ServiceDiscovery/ConsulDemo/Readme.md

Lines changed: 346 additions & 64 deletions
Large diffs are not rendered by default.

src/Microservice/ServiceDiscovery/ConsulDemo/src/ClientDemo/ServiceDiscoveryProvider/ConsulServiceProvider.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public async Task<List<string>> GetServicesAsync()
2626
var result = new List<string>();
2727
foreach (var serviceEntry in queryResult.Response)
2828
{
29-
3029
result.Add(serviceEntry.Service.Address + ":" + serviceEntry.Service.Port);
3130
}
3231
return result;

0 commit comments

Comments
 (0)