Пример #1
0
        protected virtual void OnRaisePeerDisconnectedEvent(ConnectionDisconnectedEventArgs pdea)
        {
            EventHandler <ConnectionDisconnectedEventArgs> handler = RaiseServerDisconnected;

            if (handler != null)
            {
                handler(this, pdea);
            }
        }
        protected virtual void OnRaiseClientDisconnectedEvent(ConnectionDisconnectedEventArgs cdea)
        {
            EventHandler <ConnectionDisconnectedEventArgs> handler = RaiseClientDisconnectedEvent;

            if (handler != null)
            {
                handler(this, cdea);
            }
        }