示例#1
0
 protected void InvokeErrorIfNotNull(Exception ex)
 {
     if (NetworkEventLoop.Exception != null)
     {
         NetworkEventLoop.Exception(ex, this);
     }
     else
     {
         throw new HeliosException("Unhandled exception on a connection with no error handler", ex);
     }
 }