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