Table of Contents

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 string

The 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 HttpContext

The HTTP context.

healthReport HealthReport

The health report.

Returns

Task

The async task.

See Also