This class acts as a session controller for any isee.NET Framework ASP.NET Application.
For a list of all members of this type, see SessionController Members.
System.Object
iseesystems.iseeNET.Controllers.ASPNET.SessionController
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Call the SessionController.Session_Start method in Global.Session_Start. This will set up an instance of the Simulation class for the current user accessing the application. The Simulation class instance will be stored in the ASP.NET Session object and exposed to any pages that inherit from iseesystems.iseeNET.Controllers.ASPNET.PageController as a property called "Simulation".
C# Example:
//in Global.asax...
protected void Session_Start(Object sender, EventArgs e)
{
string model = Server.MapPath(@"resources/Netsim Tutorial 1.TXM");
iseesystems.iseeNET.Controllers.ASPNET.SessionController.Session_Start(model, "xxxxxxxxxx");
}
VB.NET Example 'In Global.asax
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session is started
'Tell the ASPNET Session Controller to start up the application:
Dim model As String = Server.MapPath("resources\NetSim Tutorial 1.txm")
Dim registrationNumber As String = "xxxxxxxxx"
iseeNET.Controllers.ASPNET.SessionController.Session_Start(model, registrationNumber)
End Sub
Namespace: iseesystems.iseeNET.Controllers.ASPNET
Assembly: iseesystems.iseeNET.Controllers.ASPNET (in iseesystems.iseeNET.Controllers.ASPNET.dll)
SessionController Members | iseesystems.iseeNET.Controllers.ASPNET Namespace