C# Class Rests.Rest

Inheritance: IDisposable
Afficher le fichier Open project: NyxStudios/TShock

Méthodes publiques

Свойство Type Description
RestRequestEvent HandlerList
tokenBucket int>.Dictionary

Méthodes publiques

Méthode Description
Dispose ( ) : void
Register ( RestCommand com ) : void
Register ( string path, RestCommandD callback ) : void
Rest ( IPAddress ip, int port ) : System
Start ( ) : void
Start ( IPAddress ip, int port ) : void
Stop ( ) : void

Méthodes protégées

Méthode Description
AddCommand ( RestCommand com ) : void
BuildRequestUri ( RestCommand cmd, RestVerbs verbs, IParameterCollection parms, bool includeToken = true ) : string
Dispose ( bool disposing ) : void
ExecuteCommand ( RestCommand cmd, RestVerbs verbs, IParameterCollection parms, IRequest request, IHttpContext context ) : object
OnRequest ( object sender, HttpServer.RequestEventArgs e ) : void
ProcessRequest ( object sender, HttpServer.RequestEventArgs e ) : object

Private Methods

Méthode Description
DegradeBucket ( ) : void
OnRestRequestCall ( HttpServer.RequestEventArgs request ) : bool

Method Details

AddCommand() protected méthode

protected AddCommand ( RestCommand com ) : void
com RestCommand
Résultat void

BuildRequestUri() protected méthode

protected BuildRequestUri ( RestCommand cmd, RestVerbs verbs, IParameterCollection parms, bool includeToken = true ) : string
cmd RestCommand
verbs RestVerbs
parms IParameterCollection
includeToken bool
Résultat string

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

ExecuteCommand() protected méthode

protected ExecuteCommand ( RestCommand cmd, RestVerbs verbs, IParameterCollection parms, IRequest request, IHttpContext context ) : object
cmd RestCommand
verbs RestVerbs
parms IParameterCollection
request IRequest
context IHttpContext
Résultat object

OnRequest() protected méthode

protected OnRequest ( object sender, HttpServer.RequestEventArgs e ) : void
sender object
e HttpServer.RequestEventArgs
Résultat void

ProcessRequest() protected méthode

protected ProcessRequest ( object sender, HttpServer.RequestEventArgs e ) : object
sender object
e HttpServer.RequestEventArgs
Résultat object

Register() public méthode

public Register ( RestCommand com ) : void
com RestCommand
Résultat void

Register() public méthode

public Register ( string path, RestCommandD callback ) : void
path string
callback RestCommandD
Résultat void

Rest() public méthode

public Rest ( IPAddress ip, int port ) : System
ip System.Net.IPAddress
port int
Résultat System

Start() public méthode

public Start ( ) : void
Résultat void

Start() public méthode

public Start ( IPAddress ip, int port ) : void
ip System.Net.IPAddress
port int
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

Property Details

RestRequestEvent public_oe static_oe property

public static HandlerList RestRequestEvent
Résultat HandlerList

tokenBucket public_oe property

public Dictionary tokenBucket
Résultat int>.Dictionary