Skip to content

Commit

Permalink
Corrected obsolete messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MDacunzo committed Aug 11, 2023
1 parent 3562404 commit 65e505f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Diagnostics.HealthChecks/AbstractHealthCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Microsoft.Omex.Extensions.Diagnostics.HealthChecks
/// <summary>
/// Base health check that extracts logic of exception handling and wraps it into activity
/// </summary>
[Obsolete("The usage of this class is deprecated, please use composable classes in Microsoft.Omex.Extensions.Diagnostics.HealthChecks.Composables namespace to build health checks.")]
[Obsolete("The usage of this class is deprecated and will be removed in a later release, please use composable classes in Microsoft.Omex.Extensions.Diagnostics.HealthChecks.Composables namespace to build health checks.")]
public abstract class AbstractHealthCheck<TParameters> : IHealthCheck
where TParameters : HealthCheckParameters
{
Expand Down
4 changes: 2 additions & 2 deletions src/Diagnostics.HealthChecks/HealthChecksBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static class HealthChecksBuilderExtensions
/// <param name="failureStatus">status that should be reported when the health check reports a failure, if the provided value is null, Unhealthy will be reported Unhealthy</param>
/// <param name="additionalCheck">action that would be called after getting response, function should return new result object that would be reported</param>
/// <param name="reportData">additional properties that will be attached to health check result, for example escalation info</param>
[Obsolete("This method is deprecated, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
[Obsolete("This method is deprecated and will be removed in a later release, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
public static IHealthChecksBuilder AddHttpEndpointCheck(
this IHealthChecksBuilder builder,
string name,
Expand Down Expand Up @@ -98,7 +98,7 @@ public static IHealthChecksBuilder AddHttpEndpointCheck(
/// <param name="failureStatus">status that should be reported when the health check reports a failure, if the provided value is null, Unhealthy will be reported Unhealthy</param>
/// <param name="additionalCheck">action that would be called after getting response, function should return new result object that would be reported</param>
/// <param name="reportData">additional properties that will be attached to health check result, for example escalation info</param>
[Obsolete("This method is deprecated, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
[Obsolete("This method is deprecated and will be removed in a later release, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
public static IHealthChecksBuilder AddHttpEndpointCheck(
this IHealthChecksBuilder builder,
string name,
Expand Down
6 changes: 3 additions & 3 deletions src/Diagnostics.HealthChecks/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ private static IServiceCollection AddPublisherDependencies(this IServiceCollecti
/// <summary>
/// Register publisher for processing health check results directly to replicas
/// </summary>
[Obsolete("This method is deprecated, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
[Obsolete("This method is deprecated and will be removed in a later release, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
public static IHealthChecksBuilder AddServiceFabricHealthChecks(this IServiceCollection serviceCollection) =>
serviceCollection.AddOmexHealthCheckDependencies<ServiceContextHealthStatusSender>();

/// <summary>
/// Register publisher for processing health check results directly to nodes using REST api
/// </summary>
[Obsolete("This method is deprecated, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
[Obsolete("This method is deprecated and will be removed in a later release, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
public static IHealthChecksBuilder AddRestHealthChecksPublisher(this IServiceCollection serviceCollection) =>
serviceCollection
.AddServiceFabricClient()
Expand All @@ -60,7 +60,7 @@ public static IHealthChecksBuilder AddRestHealthChecksPublisher(this IServiceCol
/// Register publisher for processing health check results
/// </summary>

[Obsolete("This method is deprecated, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
[Obsolete("This method is deprecated and will be removed in a later release, please use HealthCheckComposablesExtensions class extension methods to compose health checks.")]
private static IHealthChecksBuilder AddOmexHealthCheckDependencies<TStatusSender>(this IServiceCollection serviceCollection)
where TStatusSender : class, IHealthStatusSender
{
Expand Down

0 comments on commit 65e505f

Please sign in to comment.