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);
            }
        }
Exemplo 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);
     }
 }