public ISession CreateSession(IConnection connection) { lock (this.SyncRoot) { ConnectionSession session = new ConnectionSession(this, connection); log.Debug(__Res.GetString(__Res.Session_Create, session.Id)); session.AddSessionDestroyedListener(this); _sessions[session.Id] = session; return(session); } }
public ISession CreateSession(IConnection connection) { lock (this.SyncRoot) { ConnectionSession session = new ConnectionSession(this, connection); log.Debug(__Res.GetString(__Res.Session_Create, session.Id)); session.AddSessionDestroyedListener(this); _sessions[session.Id] = session; return session; } }