Table of Contents

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 string

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

The HTTP context.

healthReport HealthReport

The health report.

Returns

Task

The async task.

See Also