Photon Server API
Public Member Functions | Properties | List of all members
Photon.SocketServer.Web.HttpApplicationHandler2 Class Reference

IHttpAsyncHandler implementation to host photon applications in a web application. More...

Inheritance diagram for Photon.SocketServer.Web.HttpApplicationHandler2:

Public Member Functions

 HttpApplicationHandler2 (IPhotonApplication photonApplication, string applicationName)
 Initializes a new instance of the HttpApplicationHandler2 class. More...
 
 HttpApplicationHandler2 (IPhotonApplication photonApplication, string applicationName, TimeSpan peerExpiration)
 Initializes a new instance of the HttpApplicationHandler2 class. More...
 
IAsyncResult BeginProcessRequest (HttpContext context, AsyncCallback cb, object extraData)
 
void EndProcessRequest (IAsyncResult result)
 
void ProcessRequest (HttpContext context)
 

Properties

bool IsReusable [get]
 

Detailed Description

IHttpAsyncHandler implementation to host photon applications in a web application.

Constructor & Destructor Documentation

Photon.SocketServer.Web.HttpApplicationHandler2.HttpApplicationHandler2 ( IPhotonApplication  photonApplication,
string  applicationName 
)
inline

Initializes a new instance of the HttpApplicationHandler2 class.

Parameters
photonApplicationThe photon application to host.
applicationNameThe application name.
Photon.SocketServer.Web.HttpApplicationHandler2.HttpApplicationHandler2 ( IPhotonApplication  photonApplication,
string  applicationName,
TimeSpan  peerExpiration 
)
inline

Initializes a new instance of the HttpApplicationHandler2 class.

Parameters
photonApplicationThe photon application to host.
applicationNameThe application name.
peerExpirationThe time after which a peer will be diconnected due inactivity. The default value is 30 seconds.

Member Function Documentation

IAsyncResult Photon.SocketServer.Web.HttpApplicationHandler2.BeginProcessRequest ( HttpContext  context,
AsyncCallback  cb,
object  extraData 
)
inline
void Photon.SocketServer.Web.HttpApplicationHandler2.EndProcessRequest ( IAsyncResult  result)
inline
void Photon.SocketServer.Web.HttpApplicationHandler2.ProcessRequest ( HttpContext  context)
inline

Property Documentation

bool Photon.SocketServer.Web.HttpApplicationHandler2.IsReusable
get