Table of Contents

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 string

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

The HTTP context.

healthReport HealthReport

The health report.

Returns

Task

The async task.