C# Class Informedica.GenForm.Mvc3.Controllers.SessionStateManager

Exibir arquivo Open project: halcwb/GenForm Class Usage Examples

Public Methods

Method Description
GetConnectionFromSessionState ( System.Web.HttpSessionStateBase session ) : IDbConnection
GetEnvironment ( System.Web.HttpSessionStateBase session ) : string
GetSessionFactoryFromSessionState ( System.Web.HttpSessionStateBase session ) : ISessionFactory
InitializeDatabase ( System.Web.HttpSessionStateBase sessionState ) : void
OpenSession ( System.Web.HttpSessionStateBase session ) : ISession
SetEnvironment ( string environment, System.Web.HttpSessionStateBase sessionState ) : void
SetupConfiguration ( System.Web.HttpSessionStateBase sessionState ) : void
SetupInMemoryDatabase ( System.Web.HttpSessionStateBase sessionState, IDbConnection conn ) : void
UseSessionFactoryFromApplicationOrSessionState ( System.Web.HttpSessionStateBase session ) : void

Method Details

GetConnectionFromSessionState() public static method

public static GetConnectionFromSessionState ( System.Web.HttpSessionStateBase session ) : IDbConnection
session System.Web.HttpSessionStateBase
return IDbConnection

GetEnvironment() public static method

public static GetEnvironment ( System.Web.HttpSessionStateBase session ) : string
session System.Web.HttpSessionStateBase
return string

GetSessionFactoryFromSessionState() public static method

public static GetSessionFactoryFromSessionState ( System.Web.HttpSessionStateBase session ) : ISessionFactory
session System.Web.HttpSessionStateBase
return ISessionFactory

InitializeDatabase() public static method

public static InitializeDatabase ( System.Web.HttpSessionStateBase sessionState ) : void
sessionState System.Web.HttpSessionStateBase
return void

OpenSession() public static method

public static OpenSession ( System.Web.HttpSessionStateBase session ) : ISession
session System.Web.HttpSessionStateBase
return ISession

SetEnvironment() public static method

public static SetEnvironment ( string environment, System.Web.HttpSessionStateBase sessionState ) : void
environment string
sessionState System.Web.HttpSessionStateBase
return void

SetupConfiguration() public static method

public static SetupConfiguration ( System.Web.HttpSessionStateBase sessionState ) : void
sessionState System.Web.HttpSessionStateBase
return void

SetupInMemoryDatabase() public static method

public static SetupInMemoryDatabase ( System.Web.HttpSessionStateBase sessionState, IDbConnection conn ) : void
sessionState System.Web.HttpSessionStateBase
conn IDbConnection
return void

UseSessionFactoryFromApplicationOrSessionState() public static method

public static UseSessionFactoryFromApplicationOrSessionState ( System.Web.HttpSessionStateBase session ) : void
session System.Web.HttpSessionStateBase
return void