public SessionStartConnectionHandler(Type initialSessionStateType, SessionManager sessionManager) { if (initialSessionStateType == null) throw new ArgumentNullException("initialSessionStateType", "initialSessionState is null."); if (sessionManager == null) throw new ArgumentNullException("sessionManager", "sessionManager is null."); this.initialSessionStateType = initialSessionStateType; this.sessionManager = sessionManager; }
public MarcidiaMud() { LogComponent loggingComponent = new LogComponent(this); Components.Add(loggingComponent); ConnectionWriterFactory connectionWriterFactory = new ConnectionWriterFactory(this); Components.Add(connectionWriterFactory); ConnectionManager connectionComponent = new ConnectionManager(this); Components.Add(connectionComponent); SessionManager sessionManager = new SessionManager(this); Components.Add(sessionManager); AutoComponentLoader componentLoader = new AutoComponentLoader(this); Components.Add(componentLoader); }