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.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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