Class DefaultJsonFormatter
- Namespace
- Mithril.HealthChecks.Formatters
- Assembly
- Mithril.HealthChecks.dll
Default json formatter
public class DefaultJsonFormatter : ResponseFormatterBaseClass, IResponseFormatter
- Inheritance
-
DefaultJsonFormatter
- Implements
- Inherited Members
- Extension Methods
Properties
Order
Gets the order.
public override int Order { get; }
Property Value
- int
The order.
Methods
Accepts(string)
Acceptses the specified format.
public override 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.
public override Task SendResponseAsync(HttpContext httpContext, HealthReport healthReport)
Parameters
httpContext
HttpContextThe HTTP context.
healthReport
HealthReportThe health report.
Returns
- Task
The async task.