protected virtual void OnConnectionClosed()
        {
            EventHandler <NamedConnectionEventArgs> handler = ConnectionClosed;

            if (handler != null)
            {
                var args = new NamedConnectionEventArgs()
                {
                    Connected = false,
                    Name      = Name,
                    RemoteIp  = _transportManager.RemoteIp,
                    Tcp       = true
                };
                handler(this, args);
            }
        }
Esempio n. 2
0
 protected virtual void OnConnectionClosed()
 {
     EventHandler<NamedConnectionEventArgs> handler = ConnectionClosed;
     if (handler != null)
     {
         var args = new NamedConnectionEventArgs()
         {
             Connected = false,
             Name = Name,
             RemoteIp = _transportManager.RemoteIp,
             Tcp = true
         };
         handler(this, args);
     }
 }