Compartilhar via


HealthCheckOptions.ResponseWriter Propriedade

Definição

Obtém ou define um delegado usado para gravar a resposta.

public:
 property Func<Microsoft::AspNetCore::Http::HttpContext ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReport ^, System::Threading::Tasks::Task ^> ^ ResponseWriter { Func<Microsoft::AspNetCore::Http::HttpContext ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReport ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Http::HttpContext ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReport ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Http.HttpContext,Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport,System.Threading.Tasks.Task> ResponseWriter { get; set; }
member this.ResponseWriter : Func<Microsoft.AspNetCore.Http.HttpContext, Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport, System.Threading.Tasks.Task> with get, set
Public Property ResponseWriter As Func(Of HttpContext, HealthReport, Task)

Valor da propriedade

Comentários

O valor padrão é um delegado que gravará uma resposta mínima text/plain com o valor de como uma cadeia de Status caracteres.

Aplica-se a