Beispiel #1
0
 public void Disconnect()
 {
     subscription.Dispose();
     SkynetConnection.Disconnect();
     timer.Dispose();
     client.Disconnect();
     ReleaseWait();
     container        = null;
     SkynetConnection = null;
     client           = null;
 }
Beispiel #2
0
 public void OnNext(IConnection connection)
 {
     SkynetConnection = new SkynetConnection(ClientName, connection, new SkynetPublisher(container.Resolve), new JsonSerializer());
     if (redirectOutput)
     {
         SkynetConnection.SendMessage(new RedirectHostOutput());
     }
     if (@event != null)
     {
         @event.Set();
         ReleaseWait();
     }
 }