public void Init (SessionStateModule module, HttpApplication context, SessionConfig config) { this.config = config; RemotingConfiguration.Configure (null); string cons, proto, server, port; GetConData (config.StateConnectionString, out proto, out server, out port); cons = String.Format ("{0}://{1}:{2}/StateServer", proto, server, port); state_server = (RemoteStateServer) Activator.GetObject (typeof (RemoteStateServer), cons); }
public override void Initialize (string name, NameValueCollection config) { this.config = (SessionStateSection) WebConfigurationManager.GetSection ("system.web/sessionState"); if (String.IsNullOrEmpty (name)) name = "Session Server handler"; RemotingConfiguration.Configure (null); string cons = null, proto = null, server = null, port = null; GetConData (out proto, out server, out port); cons = String.Format ("{0}://{1}:{2}/StateServer", proto, server, port); stateServer = Activator.GetObject (typeof (RemoteStateServer), cons) as RemoteStateServer; base.Initialize (name, config); }
public override void Initialize (string name, NameValueCollection config) { this.config = (SessionStateSection) WebConfigurationManager.GetSection ("system.web/sessionState"); if (String.IsNullOrEmpty (name)) name = "Session Server handler"; RemotingConfiguration.Configure (null); string cons = null, proto = null, server = null, port = null; GetConData (out proto, out server, out port); cons = String.Format ("{0}://{1}:{2}/StateServer", proto, server, port); stateServer = Activator.GetObject (typeof (RemoteStateServer), cons) as RemoteStateServer; base.Initialize (name, config); }