public void Disconnect() { subscription.Dispose(); SkynetConnection.Disconnect(); timer.Dispose(); client.Disconnect(); ReleaseWait(); container = null; SkynetConnection = null; client = null; }
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(); } }