Beispiel #1
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     _client.TradeEvent -= OnTrade;
     _client.QuoteEvent -= OnQuote;
     _client.Error      -= OnError;
     _client.Dispose();
 }
Beispiel #2
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     _client.TradeEvent -= OnTrade;
     _client.QuoteEvent -= OnQuote;
     _client.Error      -= OnError;
     _client.Dispose();
     _dataAggregator.DisposeSafely();
 }