C# 클래스 afung.MangaWeb3.Server.AjaxBase

The base class for Http request server entry point
상속: System.Web.UI.Page
파일 보기 프로젝트 열기: a-fung/MangaWeb3 1 사용 예제들

공개 메소드들

메소드 설명
BadRequest ( ) : void

Return "bad request" to the client app

ReturnJson ( JsonResponse response ) : void

Return a Json response to the client app

Unauthorized ( ) : void

Return "unauthorized" to the client app

보호된 메소드들

메소드 설명
HandleRequest ( HandlerBase handlers ) : void

Handle the json request using a list of handlers

PageLoad ( ) : void

The PageLoad function is to be overriden by child class In this function it should create a list of handlers and call the HandleRequest function

Page_Load ( object sender, EventArgs e ) : void

Called when the page loads

비공개 메소드들

메소드 설명
RequestParams ( string name ) : string

Get the value of a request parameter

메소드 상세

BadRequest() 공개 메소드

Return "bad request" to the client app
public BadRequest ( ) : void
리턴 void

HandleRequest() 보호된 메소드

Handle the json request using a list of handlers
protected HandleRequest ( HandlerBase handlers ) : void
handlers afung.MangaWeb3.Server.Handler.HandlerBase The array of handlers
리턴 void

PageLoad() 보호된 추상적인 메소드

The PageLoad function is to be overriden by child class In this function it should create a list of handlers and call the HandleRequest function
protected abstract PageLoad ( ) : void
리턴 void

Page_Load() 보호된 메소드

Called when the page loads
protected Page_Load ( object sender, EventArgs e ) : void
sender object The sender
e System.EventArgs The event argument
리턴 void

ReturnJson() 공개 메소드

Return a Json response to the client app
public ReturnJson ( JsonResponse response ) : void
response JsonResponse The response object to be stringify and return to client app
리턴 void

Unauthorized() 공개 메소드

Return "unauthorized" to the client app
public Unauthorized ( ) : void
리턴 void