예제 #1
0
        public virtual void OnSessionShutdown(ShutdownEventArgs reason)
        {
            m_connection.ConnectionShutdown -=
                new ConnectionShutdownEventHandler(this.OnConnectionShutdown);
            SessionShutdownEventHandler handler;

            lock (m_shutdownLock)
            {
                handler           = m_sessionShutdown;
                m_sessionShutdown = null;
            }
            if (handler != null)
            {
                handler(this, reason);
            }
        }
예제 #2
0
        public virtual void OnSessionShutdown(ShutdownEventArgs reason)
        {
            //Console.WriteLine("Session shutdown "+ChannelNumber+": "+reason);
            m_connection.ConnectionShutdown -=
                new ConnectionShutdownEventHandler(this.OnConnectionShutdown);
            SessionShutdownEventHandler handler;

            lock (m_shutdownLock)
            {
                handler           = m_sessionShutdown;
                m_sessionShutdown = null;
            }
            if (handler != null)
            {
                handler(this, reason);
            }
        }
예제 #3
0
 public virtual void OnSessionShutdown(ShutdownEventArgs reason)
 {
     //Console.WriteLine("Session shutdown "+ChannelNumber+": "+reason);
     m_connection.ConnectionShutdown -=
         new ConnectionShutdownEventHandler(this.OnConnectionShutdown);
     SessionShutdownEventHandler handler;
     lock (m_shutdownLock)
     {
         handler = m_sessionShutdown;
         m_sessionShutdown = null;
     }
     if (handler != null)
     {
         handler(this, reason);
     }
 }