C# Класс WaveBox.ApiHandler.Handlers.ErrorApiHandler

Наследование: IApiHandler
Показать файл Открыть проект

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

Метод Описание
CheckPermission ( User user, string action ) : bool
Process ( UriWrapper uri, IHttpProcessor processor, User user ) : void

Overload for IApiHandler interface

Process ( UriWrapper uri, IHttpProcessor processor, User user, string error ) : void

Process logs the error, creates a JSON response, and send it back to the user on bad API call

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

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

public CheckPermission ( User user, string action ) : bool
user WaveBox.Core.Model.User
action string
Результат bool

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

Overload for IApiHandler interface
public Process ( UriWrapper uri, IHttpProcessor processor, User user ) : void
uri UriWrapper
processor IHttpProcessor
user WaveBox.Core.Model.User
Результат void

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

Process logs the error, creates a JSON response, and send it back to the user on bad API call
public Process ( UriWrapper uri, IHttpProcessor processor, User user, string error ) : void
uri UriWrapper
processor IHttpProcessor
user WaveBox.Core.Model.User
error string
Результат void