Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _webSocketClient.Dispose();
     }
 }
Exemple #2
0
        /// <inheritdoc />
        public override void Dispose()
        {
            processBuffer.Clear();
            asks.Clear();
            bids.Clear();

            if (_restOwner)
            {
                _restClient?.Dispose();
            }
            if (_socketOwner)
            {
                _socketClient?.Dispose();
            }
        }