Ejemplo n.º 1
0
 /// <summary>
 /// Callback for when a connection had disconnected
 /// </summary>
 /// <param name="sender">The client object whom is disconnecting</param>
 private void ClientDisconnected(GPSPClient client)
 {
     // Release this stream's AsyncEventArgs to the object pool
     Release(client.Stream);
     if (Clients.TryRemove(client.ConnectionID, out client) && !client.Disposed)
     {
         client.Dispose();
     }
 }