From b5668bb6b67c4fc7c1359d9d0aa7b684c3042c15 Mon Sep 17 00:00:00 2001 From: Tarun Jain Date: Mon, 10 Jan 2022 12:51:33 +0530 Subject: [PATCH 1/3] updated body to .Net 6.0, change the declaration from readonly to const --- .../implement-resilient-applications/monitor-app-health.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md b/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md index fa464c40c3e60..2c1a99821e85a 100644 --- a/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md +++ b/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md @@ -21,7 +21,7 @@ To use this feature effectively, you need to first configure services in your mi ### Use the HealthChecks feature in your back-end ASP.NET microservices -In this section, you'll learn how to implement the HealthChecks feature in a sample ASP.NET Core 3.1 Web API application when using the [Microsoft.Extensions.Diagnostics.HealthChecks](https://www.nuget.org/packages/Microsoft.Extensions.Diagnostics.HealthChecks) package. The Implementation of this feature in a large-scale microservices like the eShopOnContainers is explained in the next section. +In this section, you'll learn how to implement the HealthChecks feature in a sample .NET 6 Web API application when using the [Microsoft.Extensions.Diagnostics.HealthChecks](https://www.nuget.org/packages/Microsoft.Extensions.Diagnostics.HealthChecks) package. The Implementation of this feature in a large-scale microservices like the eShopOnContainers is explained in the next section. To begin, you need to define what constitutes a healthy status for each microservice. In the sample application, we define the microservice is healthy if its API is accessible via HTTP and its related SQL Server database is also available. @@ -54,7 +54,7 @@ The `AddCheck()` method adds a new health check with a specified name and the im // Sample SQL Connection Health Check public class SqlConnectionHealthCheck : IHealthCheck { - private static readonly string DefaultTestQuery = "Select 1"; + private const string DefaultTestQuery = "Select 1"; public string ConnectionString { get; } From 0df6470e05860d503942e7c0e3032e4f8eae74b8 Mon Sep 17 00:00:00 2001 From: Tarun Jain <87998741+erjain@users.noreply.github.com> Date: Mon, 10 Jan 2022 19:06:58 +0530 Subject: [PATCH 2/3] Update docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md Co-authored-by: Nish Anil --- .../implement-resilient-applications/monitor-app-health.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md b/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md index 2c1a99821e85a..6b17b61c6e232 100644 --- a/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md +++ b/docs/architecture/microservices/implement-resilient-applications/monitor-app-health.md @@ -21,7 +21,7 @@ To use this feature effectively, you need to first configure services in your mi ### Use the HealthChecks feature in your back-end ASP.NET microservices -In this section, you'll learn how to implement the HealthChecks feature in a sample .NET 6 Web API application when using the [Microsoft.Extensions.Diagnostics.HealthChecks](https://www.nuget.org/packages/Microsoft.Extensions.Diagnostics.HealthChecks) package. The Implementation of this feature in a large-scale microservices like the eShopOnContainers is explained in the next section. +In this section, you'll learn how to implement the HealthChecks feature in a sample ASP.NET Core 6.0 Web API application when using the [Microsoft.Extensions.Diagnostics.HealthChecks](https://www.nuget.org/packages/Microsoft.Extensions.Diagnostics.HealthChecks) package. The Implementation of this feature in a large-scale microservices like the eShopOnContainers is explained in the next section. To begin, you need to define what constitutes a healthy status for each microservice. In the sample application, we define the microservice is healthy if its API is accessible via HTTP and its related SQL Server database is also available. From 546579bf3ab73ca17cd3978084afc98cc58bb4bc Mon Sep 17 00:00:00 2001 From: Tarun Jain Date: Mon, 31 Jan 2022 23:40:09 +0530 Subject: [PATCH 3/3] Commit to update the content with .NET 6 --- docs/architecture/index.yml | 2 +- docs/architecture/toc.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/architecture/index.yml b/docs/architecture/index.yml index e7af7b005fd02..1d230ebc1d4cd 100644 --- a/docs/architecture/index.yml +++ b/docs/architecture/index.yml @@ -23,7 +23,7 @@ landingContent: url: blazor-for-web-forms-developers/index.md - text: ASP.NET Core gRPC for WCF developers url: grpc-for-wcf-developers/index.md - - text: Porting existing ASP.NET apps to .NET Core + - text: Porting existing ASP.NET apps to .NET 6 url: porting-existing-aspnet-apps/index.md # Card diff --git a/docs/architecture/toc.yml b/docs/architecture/toc.yml index be633ad9f5e15..a730ba800923e 100644 --- a/docs/architecture/toc.yml +++ b/docs/architecture/toc.yml @@ -25,5 +25,5 @@ href: serverless/ - name: "Dapr for .NET Developers" href: dapr-for-net-developers/ - - name: "Porting existing ASP.NET apps to .NET Core" + - name: "Porting existing ASP.NET apps to .NET 6" href: porting-existing-aspnet-apps/