Пример #1
0
 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);
     }
 }
Пример #2
0
		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;
			}
		}