public async Task StopAsync(CancellationToken cancellationToken) { if (!_options.ManageNgrokProcess && _tunnels != null) { foreach (var tunnel in _tunnels) { await _client.StopTunnelAsync(tunnel.Name, cancellationToken); } } _cancellationTokenSource.Cancel(); // Stop the process await _processMgr.StopNgrokAsync(); await _shutdownSource.Task; }
public async Task StopTunnel_Https() { await Client.StopTunnelAsync("Test_StartTunnel_Http"); Assert.True(true); }