Property | Type | Description | |
---|---|---|---|
CacheFile | |||
Client | HttpClient |
Method | Description | |
---|---|---|
Controller ( HttpClient Client ) : System | ||
FormatDate ( int Time ) : string |
Takes a timestamp and converts it to a data format that was used in BF2sClone
|
|
FormatTime ( int Time ) : string |
Formats an integer timestamp to a timespan format that was used in BF2sClone
|
|
HandleRequest ( MvcRoute Route ) : void |
Processes the request, and sends a resonse back to the client
|
|
SendCachedResponse ( string CacheFileName ) : void |
Fills the client response with the contents of the Cache file specified
|
Method | Description | |
---|---|---|
CacheFileExpired ( string CacheFileName, int CacheTime ) : bool |
Returns whether or not the Cache file is expired
|
|
CorrectUrls ( string source, |
This method will reformat all base url's to point to the requested hostname and bf2stats querypath.
|
|
EnsureTemplate ( string Name ) : bool |
Returns whether the template name provided has been compiled with the Razor Engine
|
|
SendTemplateResponse ( string TemplateName, |
Runs the specified Template through the RazorEngine and sends the contents back to the client in the Response
|
protected CacheFileExpired ( string CacheFileName, int CacheTime ) : bool | ||
CacheFileName | string | The Cache file name |
CacheTime | int | The expire time of the cache file in Minutes |
return | bool |
public Controller ( HttpClient Client ) : System | ||
Client | HttpClient | |
return | System |
protected CorrectUrls ( string source, |
||
source | string | |
Model | ||
return | string |
protected EnsureTemplate ( string Name ) : bool | ||
Name | string | The name of the template |
return | bool |
public abstract HandleRequest ( MvcRoute Route ) : void | ||
Route | MvcRoute | |
return | void |
public SendCachedResponse ( string CacheFileName ) : void | ||
CacheFileName | string | The name of the cache file |
return | void |
protected SendTemplateResponse ( string TemplateName, |
||
TemplateName | string | The name of the cshtml template file we are parsing |
ModelType | The Model type used in the template file | |
Model | object | The Model used in the template file |
CacheFileName | string | The name of the Cached file if we are using one. Leave blank for no caching. |
return | void |