Class ResponseFormatterBaseClass
- Namespace
- Mithril.HealthChecks.Abstractions.BaseClasses
- Assembly
- Mithril.HealthChecks.Abstractions.dll
Response formatter base class
public abstract class ResponseFormatterBaseClass : IResponseFormatter
- Inheritance
-
ResponseFormatterBaseClass
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ResponseFormatterBaseClass()
Initializes a new instance of the ResponseFormatterBaseClass class.
protected ResponseFormatterBaseClass()
Properties
Order
Gets the order.
public virtual int Order { get; }
Property Value
- int
The order.
Methods
Accepts(string)
Acceptses the specified format.
public virtual 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 abstract Task SendResponseAsync(HttpContext httpContext, HealthReport healthReport)
Parameters
httpContext
HttpContextThe HTTP context.
healthReport
HealthReportThe health report.
Returns
- Task
The async task.