HealthCheckOptions.ResponseWriter 属性

定义

获取或设置用于写入响应的委托。

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)

属性值

注解

默认值是一个委托,它将编写一个最小 text/plain 响应,其值为 Status 作为字符串。

适用于