Interface IResponseFormatter
- Namespace
- Mithril.HealthChecks.Abstractions.Interfaces
- Assembly
- Mithril.HealthChecks.Abstractions.dll
Response formatter
public interface IResponseFormatter
- Extension Methods
Properties
Order
Gets the order.
int Order { get; }
Property Value
- int
The order.
Methods
Accepts(string)
Acceptses the specified format.
bool Accepts(string format)
Parameters
format
stringThe format.
Returns
- bool
True if it accepts that format, false otherwise.
SendResponseAsync(HttpContext, HealthReport)
Sends the response asynchronously.
Task SendResponseAsync(HttpContext httpContext, HealthReport healthReport)
Parameters
httpContext
HttpContextThe HTTP context.
healthReport
HealthReportThe health report.
Returns
- Task
The async task.