C# 클래스 BF2Statistics.Web.HttpServer

The ASP Server is used to emulate the official Gamespy BF2 Stats Server HTTP Requests, and provide players with the ability to run thier own BF2 Ranking system on thier personal PC's.
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter

공개 프로퍼티들

프로퍼티 타입 설명
AcceptableMethods string[]
LocalIPs List
ModelType System.Type
SessionRequests int

공개 메소드들

메소드 설명
ClearRazorCache ( ) : void

Removes all of the Razor Engine built temporary files from the AppData/Temp folder

Start ( ) : void

Start the ASP listener, and Connects to the stats database

Stop ( ) : void

Stops the ASP listener, and unbinds from the port.

비공개 메소드들

메소드 설명
CreateHttpListener ( ) : void

Creates the HttpListener object, and configures the prefixes

CreateRazorService ( ) : void

Creates the Razor Engine Service needed to properly handle the cshtml files

GetASPController ( HttpClient Client, string Document ) : ASPController

Returns the specified ASPController object for handling the ASP response, or null if the Document does not have a controller

GetBf2StatsController ( string Document, HttpClient Client ) : Controller

Returns the specified Controller object for handling the bf2stats response, or null if the Document does not have a controller

HandleRequest ( IAsyncResult Sync ) : void

Accepts the connection

HttpServer ( ) : System

Static constructor

ProcessRequest ( HttpClient Client ) : void

Handles the Http Connecting client and processes the HttpResponse

메소드 상세

ClearRazorCache() 공개 정적인 메소드

Removes all of the Razor Engine built temporary files from the AppData/Temp folder
public static ClearRazorCache ( ) : void
리턴 void

Start() 공개 정적인 메소드

Start the ASP listener, and Connects to the stats database
public static Start ( ) : void
리턴 void

Stop() 공개 정적인 메소드

Stops the ASP listener, and unbinds from the port.
public static Stop ( ) : void
리턴 void

프로퍼티 상세

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

An array of http request methods that this server will accept
public static string[] AcceptableMethods
리턴 string[]

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

A List of local IP addresses for this machine
public static List LocalIPs
리턴 List

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

Gets the default ModelType for bf2stats pages
public static Type,System ModelType
리턴 System.Type

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

Number of session web requests
public static int SessionRequests
리턴 int