HealthCheckResult.Unhealthy(String, Exception, IReadOnlyDictionary<String,Object>) Método

Definição

Cria um HealthCheckResult que representa um componente não íntegro.Creates a HealthCheckResult representing an unhealthy component.

public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Unhealthy (string description = default, Exception exception = default, System.Collections.Generic.IReadOnlyDictionary<string,object> data = default);
public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Unhealthy (string? description = default, Exception? exception = default, System.Collections.Generic.IReadOnlyDictionary<string,object>? data = default);
static member Unhealthy : string * Exception * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult
Public Shared Function Unhealthy (Optional description As String = Nothing, Optional exception As Exception = Nothing, Optional data As IReadOnlyDictionary(Of String, Object) = Nothing) As HealthCheckResult

Parâmetros

description
String

Uma descrição legível do status do componente que foi verificado.A human-readable description of the status of the component that was checked. Opcional.Optional.

exception
Exception

Um Exception que representa a exceção gerada ao verificar o status.An Exception representing the exception that was thrown when checking for status. Opcional.Optional.

data
IReadOnlyDictionary<String,Object>

Pares chave-valor adicionais que descrevem a integridade do componente.Additional key-value pairs describing the health of the component. Opcional.Optional.

Retornos

HealthCheckResult

Um HealthCheckResult que representa um componente não íntegro.A HealthCheckResult representing an unhealthy component.

Aplica-se a