메소드 | 설명 | |
---|---|---|
Dispose ( ) : void |
Records the module being disposed if debug enabled.
|
|
Init ( System.Web.HttpApplication application ) : void |
Initialises the device detection module.
|
메소드 | 설명 | |
---|---|---|
Initialise ( System.Web.HttpApplication application ) : void |
Initiliases the HttpModule registering this modules interest in all new requests and handler mappings.
|
메소드 | 설명 | |
---|---|---|
AppendCoreJavaScript ( |
Provides the core javascript for the device detected by the context.
|
|
AppendJavascript ( StringBuilder sb, string content ) : void |
If the javascript is not empty adds it to the string builder.
|
|
DetectorModule ( ) : System | ||
GetFeatureJavaScript ( |
Gets the JavaScript to send to the specific client device based on the request context provided.
|
|
GetFeatureJavaScript ( Match match, List |
Adds the value for the property provided to the list of features.
|
|
GetHashCode ( |
Uses the User-Agent of the device, the query string of the request and the published data of the detection data set to work out an MD5 hash for the response which will be used to avoid requests to find the matching device. This is quicker than hashing the result as it avoids executing the match.
|
|
OnBeginRequestJavascript ( object sender, |
||
OnLoad ( object page, |
||
OnPostAcquireRequestState ( object sender, |
Called after the session has been initialised.
|
|
OnPostAuthorizeRequest ( object sender, |
Checks for a png or jpg being requested with a w or h query string paramter and if there is one present will check to determine if a cached version is available. If one isn't in the disk cache then one will be created. The request will be redirected back to the static file handler to server the image.
|
|
OnPostMapRequestHandler ( object sender, |
||
OnPostRequestHandlerExecute ( object sender, |
Called before the response is send to the browser.
|
|
SendJavaScript ( |
Sends the content string to the response a javascript.
|
public Init ( System.Web.HttpApplication application ) : void | ||
application | System.Web.HttpApplication | HttpApplication object for the web application. |
리턴 | void |
protected Initialise ( System.Web.HttpApplication application ) : void | ||
application | System.Web.HttpApplication | HttpApplication object for the web application. |
리턴 | void |