Example #1
0
 protected void InvokeDisconnectIfNotNull(INode remoteHost, HeliosConnectionException ex)
 {
     if (NetworkEventLoop.Disconnection != null)
     {
         NetworkEventLoop.Disconnection(ex, this);
     }
 }
Example #2
0
        public void Close()
        {
            _reactor.CloseConnection(this);

            if (NetworkEventLoop.Disconnection != null)
            {
                NetworkEventLoop.Disconnection(new HeliosConnectionException(ExceptionType.Closed), this);
            }
            EventLoop.Dispose();
        }