Exemplo n.º 1
0
 public static void Connect()
 {
     if (_client == null && _config.UpstreamUri != null) {
         _streamingEnabled = true;
         _client = new LogStreamerChild(_logger, _clientmanager, _clientCts.Token, _config);
         _client.Connect();
     }
 }
Exemplo n.º 2
0
 public static void Disconnect()
 {
     if (_client != null) {
         _client.Disconnect();
         _client = null;
         _streamingEnabled = false;
         Status = "Not connected.";
         _clientCts.Cancel();
         _clientCts = new CancellationTokenSource();
     }
 }
 static public void Connect()
 {
     Disconnect();
     _streamingEnabled = true;
     _client = new LogStreamerChild(_clientmanager, ParentUri, _clientCts.Token, Whitelist);
 }