Beispiel #1
0
 internal async Task OnConnectedAsync(PhysicalConnection connection, TextWriter log)
 {
     Trace("OnConnected");
     if (physical == connection && !isDisposed && ChangeState(State.Connecting, State.ConnectedEstablishing))
     {
         await ServerEndPoint.OnEstablishingAsync(connection, log).ForAwait();
     }
     else
     {
         try
         {
             connection.Dispose();
         }
         catch { }
     }
 }