Exemplo n.º 1
0
 /// <summary>
 /// Fires ClientConnectedEvent in the current thread
 /// </summary>
 /// <param name="eventArgs"></param>
 private void OnClientConnected(ClientConnectedEventArgs eventArgs)
 {
     _synchronizationContext.Post(e => ClientConnectedEvent.SafeInvoke(this, (ClientConnectedEventArgs)e),
                                  eventArgs);
 }
Exemplo n.º 2
0
 private void ClientConnectedHandler(object sender, ClientConnectedEventArgs eventArgs)
 {
     OnClientConnected(eventArgs);
 }