C# 클래스 WaveBox.ApiHandler.Handlers.ErrorApiHandler

상속: IApiHandler
파일 보기 프로젝트 열기: einsteinx2/WaveBox

공개 메소드들

메소드 설명
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