private void RaiseMarketDataSubscriptionFinished(Security security, MarketDataFinishedMessage message, Subscription subscription) { this.AddDebugLog(LocalizedStrings.SubscriptionFinished, security?.Id, message); MarketDataSubscriptionFinished?.Invoke(security, message); if (subscription != null) { RaiseSubscriptionStopped(subscription, null); } }
private void RaiseMarketDataSubscriptionFinished(MarketDataFinishedMessage message, Subscription subscription) { if (message == null) { throw new ArgumentNullException(nameof(message)); } if (subscription == null) { throw new ArgumentNullException(nameof(subscription)); } var security = subscription.Security; this.AddDebugLog(LocalizedStrings.SubscriptionFinished, security?.Id, message); MarketDataSubscriptionFinished?.Invoke(security, message); RaiseSubscriptionStopped(subscription, null); if (subscription.CandleSeries != null) { RaiseCandleSeriesStopped(subscription.CandleSeries); } }
private void RaiseMarketDataSubscriptionFinished(Security security, MarketDataFinishedMessage message) { this.AddDebugLog("Market data finished: {0} {1}", security?.Id, message); MarketDataSubscriptionFinished?.Invoke(security, message); }
private void RaiseMarketDataSubscriptionFinished(Security security, MarketDataFinishedMessage message) { this.AddDebugLog(LocalizedStrings.SubscriptionFinished, security?.Id, message); MarketDataSubscriptionFinished?.Invoke(security, message); }