HealthCheckOptions.ResponseWriter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a delegate used to write the response.
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)
Property Value
Remarks
The default value is a delegate that will write a minimal text/plain
response with the value of Status as a string.