/// <summary> /// Change client and resubscribe to the new streams /// </summary> public void ChangeClient(IHuobiMarketByPriceWebsocketClient client) { CryptoValidations.ValidateInput(client, nameof(client)); _client = client; _subscriptionSnapshot?.Dispose(); _subscription?.Dispose(); Subscribe(); }
/// <inheritdoc /> public HuobiOrderBookSource(IHuobiMarketByPriceWebsocketClient client) { ChangeClient(client); }
public MarketByPriceClientExample(IHuobiMarketByPriceWebsocketClient client, ILogger <MarketByPriceClientExample> symbol) { _client = client; _logger = symbol; }