예제 #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;
     }
 }