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:
parent
3a12266100
commit
2c0287d686
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue