public void OnProviderStatusChanged(Provider provider) { switch (provider.Status) { case ProviderStatus.Connected: OnProviderConnected(provider); break; case ProviderStatus.Disconnected: OnProviderDisconnected(provider); break; } OnEvent(new OnProviderStatusChanged(provider)); }
protected virtual void OnProviderDisconnected(Provider provider) { }
internal virtual void vmethod_4(Provider provider) { if (this.IsInstance) { this.OnProviderDisconnected(provider); } }
internal void OnProviderDisconnected(Provider provider) { if (Strategy?.Status == StrategyStatus.Running) Strategy.EmitProviderDisconnected(provider); }
public OnProviderStatusChanged(Provider provider) { Provider = provider; ProviderId = provider.Id; }
public OnProviderDisconnected(DateTime dateTime, Provider provider) : base(dateTime) { Provider = provider; }
public OnProviderRemoved(Provider provider) { Provider = provider; ProviderId = provider.Id; }
public ProviderInfo(Provider provider) { Id = provider.Id; Name = provider.Name; Description = provider.Description; Url = provider.Url; if (provider is IDataProvider) ProviderType |= ProviderType.DataProvider; if (provider is INewsProvider) ProviderType |= ProviderType.NewsProvider; if (provider is IExecutionProvider) ProviderType |= ProviderType.ExecutionProvider; if (provider is IFundamentalProvider) ProviderType |= ProviderType.FundamentalProvider; if (provider is IInstrumentProvider) ProviderType |= ProviderType.InstrumentProvider; if (provider is IHistoricalDataProvider) ProviderType |= ProviderType.HistoricalDataProvider; Status = provider.Status; }
public void OnProviderDisconnected(Provider provider) => OnEvent(new OnProviderDisconnected(this.framework.Clock.DateTime, provider));
public void OnProviderRemoved(Provider provider) => OnEvent(new OnProviderRemoved(provider));