/// <summary> /// Summary: /// Performs application-defined tasks associated with freeing, releasing, or /// resetting unmanaged resources. /// </summary> public void Dispose() { if (_localServer != null) { _localServer.Dispose(); _localServer = null; } }
/// <summary> /// Constructor for the provider to initialize the Session Server with the specified parameters /// </summary> /// <param name="sessionTimeOut">The timeout to expire the session, in minutes</param> /// <param name="pollingSeconds">The seconds to poll the sessions to expire</param> /// <param name="connStringName">The connection string name</param> public LocalSharedSessionServerProvider(int sessionTimeOut, int pollingSeconds, string connStringName) { _localServer = new SessionServer(sessionTimeOut, pollingSeconds, connStringName); }
/// <summary> /// Default constructor for the provider to initialize the Session Server with the application configuration /// </summary> public LocalSharedSessionServerProvider() { _localServer = new SessionServer(); }