Fix ignored exception parameter on Degraded method

The 'exception' parameter was ignored and a hardcoded null value was used on HealthCheckResult.Degraded\n\nCommit migrated from dbfc2dee3a
This commit is contained in:
marciomyst 2019-02-08 15:35:13 -02:00 committed by Ryan Nowak
parent 3a12266100
commit 2c0287d686
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace Microsoft.Extensions.Diagnostics.HealthChecks
/// <returns>A <see cref="HealthCheckResult"/> representing a degraged component.</returns>
public static HealthCheckResult Degraded(string description = null, Exception exception = null, IReadOnlyDictionary<string, object> data = null)
{
return new HealthCheckResult(status: HealthStatus.Degraded, description, exception: null, data);
return new HealthCheckResult(status: HealthStatus.Degraded, description, exception: exception, data);
}
/// <summary>