private void RaiseMarketDataSubscriptionOnline(Security security, MarketDataMessage message, Subscription subscription) { this.AddDebugLog(LocalizedStrings.SubscriptionOnline, security?.Id, message); MarketDataSubscriptionOnline?.Invoke(security, message); if (subscription != null) { RaiseSubscriptionOnline(subscription); } }
private void RaiseMarketDataSubscriptionOnline(Security security, MarketDataMessage message, Subscription subscription) { if (message == null) { throw new ArgumentNullException(nameof(message)); } if (subscription == null) { throw new ArgumentNullException(nameof(subscription)); } this.AddDebugLog(LocalizedStrings.SubscriptionOnline, security?.Id, message); MarketDataSubscriptionOnline?.Invoke(security, message); RaiseSubscriptionOnline(subscription); }
private void RaiseMarketDataSubscriptionOnline(Subscription subscription) { if (subscription == null) { throw new ArgumentNullException(nameof(subscription)); } var security = subscription.Security; this.AddDebugLog(LocalizedStrings.SubscriptionOnline, security?.Id, subscription.SubscriptionMessage); if (subscription.SubscriptionMessage is MarketDataMessage mdMsg) { MarketDataSubscriptionOnline?.Invoke(security, mdMsg); } RaiseSubscriptionOnline(subscription); }