Exemplo n.º 1
0
 public void Kick(HubDisconnectContext ctx)
 {
     Thread t = new Thread(new ParameterizedThreadStart(this.KickThread));
     t.Start(ctx);
 }
Exemplo n.º 2
0
 public void KickApp(uint appId)
 {
     try
     {
         var ctx = new HubDisconnectContext();
         _hub[appId].Kick(ctx);
         ctx.Release();
     }
     catch (SocketException)
     {
         // do nothing
     }
 }