C# Класс Stumps.Web.ErrorStatusCodeHandler

A class that provides an implementation of the Nancy status code handler.
Наследование: IStatusCodeHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
Handle ( HttpStatusCode statusCode, Nancy.NancyContext context ) : void

Handle the error code.

HandlesStatusCode ( HttpStatusCode statusCode, Nancy context ) : bool

Check if the error handler can handle errors of the provided status code.

Приватные методы

Метод Описание
ShouldReturnFriendlyErrorPage ( Nancy.NancyContext context ) : bool

Determines if a friendly error page should be returned for a T:Nancy.NancyContext.

Описание методов

Handle() публичный Метод

Handle the error code.
is null.
public Handle ( HttpStatusCode statusCode, Nancy.NancyContext context ) : void
statusCode HttpStatusCode The HTTP status code.
context Nancy.NancyContext Current context of the request.
Результат void

HandlesStatusCode() публичный Метод

Check if the error handler can handle errors of the provided status code.
public HandlesStatusCode ( HttpStatusCode statusCode, Nancy context ) : bool
statusCode HttpStatusCode The HTTP status code.
context Nancy The instance of the current request.
Результат bool