C# Class afung.MangaWeb3.Server.AjaxBase

The base class for Http request server entry point
Inheritance: System.Web.UI.Page
Afficher le fichier Open project: a-fung/MangaWeb3 Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
RequestParams ( string name ) : string

Get the value of a request parameter

Method Details

BadRequest() public méthode

Return "bad request" to the client app
public BadRequest ( ) : void
Résultat void

HandleRequest() protected méthode

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

PageLoad() protected abstract méthode

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
Résultat void

Page_Load() protected méthode

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

ReturnJson() public méthode

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
Résultat void

Unauthorized() public méthode

Return "unauthorized" to the client app
public Unauthorized ( ) : void
Résultat void