Пример #1
0
        /// <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();
        }
Пример #2
0
 /// <inheritdoc />
 public HuobiOrderBookSource(IHuobiMarketByPriceWebsocketClient client)
 {
     ChangeClient(client);
 }
 public MarketByPriceClientExample(IHuobiMarketByPriceWebsocketClient client, ILogger <MarketByPriceClientExample> symbol)
 {
     _client = client;
     _logger = symbol;
 }