Exemple #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);
            }
        }
Exemple #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);
            }
        }
Exemple #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);
     }
 }