C# 클래스 Rests.Rest

상속: IDisposable
파일 보기 프로젝트 열기: NyxStudios/TShock

공개 프로퍼티들

프로퍼티 타입 설명
RestRequestEvent HandlerList
tokenBucket int>.Dictionary

공개 메소드들

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

보호된 메소드들

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

비공개 메소드들

메소드 설명
DegradeBucket ( ) : void
OnRestRequestCall ( HttpServer.RequestEventArgs request ) : bool

메소드 상세

AddCommand() 보호된 메소드

protected AddCommand ( RestCommand com ) : void
com RestCommand
리턴 void

BuildRequestUri() 보호된 메소드

protected BuildRequestUri ( RestCommand cmd, RestVerbs verbs, IParameterCollection parms, bool includeToken = true ) : string
cmd RestCommand
verbs RestVerbs
parms IParameterCollection
includeToken bool
리턴 string

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

ExecuteCommand() 보호된 메소드

protected ExecuteCommand ( RestCommand cmd, RestVerbs verbs, IParameterCollection parms, IRequest request, IHttpContext context ) : object
cmd RestCommand
verbs RestVerbs
parms IParameterCollection
request IRequest
context IHttpContext
리턴 object

OnRequest() 보호된 메소드

protected OnRequest ( object sender, HttpServer.RequestEventArgs e ) : void
sender object
e HttpServer.RequestEventArgs
리턴 void

ProcessRequest() 보호된 메소드

protected ProcessRequest ( object sender, HttpServer.RequestEventArgs e ) : object
sender object
e HttpServer.RequestEventArgs
리턴 object

Register() 공개 메소드

public Register ( RestCommand com ) : void
com RestCommand
리턴 void

Register() 공개 메소드

public Register ( string path, RestCommandD callback ) : void
path string
callback RestCommandD
리턴 void

Rest() 공개 메소드

public Rest ( IPAddress ip, int port ) : System
ip System.Net.IPAddress
port int
리턴 System

Start() 공개 메소드

public Start ( ) : void
리턴 void

Start() 공개 메소드

public Start ( IPAddress ip, int port ) : void
ip System.Net.IPAddress
port int
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

프로퍼티 상세

RestRequestEvent 공개적으로 정적으로 프로퍼티

public static HandlerList RestRequestEvent
리턴 HandlerList

tokenBucket 공개적으로 프로퍼티

public Dictionary tokenBucket
리턴 int>.Dictionary