Inheritance: IProvider
コード例 #1
0
 public void OnProviderStatusChanged(Provider provider)
 {
     switch (provider.Status)
     {
         case ProviderStatus.Connected:
             OnProviderConnected(provider);
             break;
         case ProviderStatus.Disconnected:
             OnProviderDisconnected(provider);
             break;
     }
     OnEvent(new OnProviderStatusChanged(provider));
 }
コード例 #2
0
 protected virtual void OnProviderDisconnected(Provider provider)
 {
 }
コード例 #3
0
 internal virtual void vmethod_4(Provider provider)
 {
     if (this.IsInstance)
     {
         this.OnProviderDisconnected(provider);
     }
 }
コード例 #4
0
 internal void OnProviderDisconnected(Provider provider)
 {
     if (Strategy?.Status == StrategyStatus.Running)
         Strategy.EmitProviderDisconnected(provider);
 }
コード例 #5
0
 public OnProviderStatusChanged(Provider provider)
 {
     Provider = provider;
     ProviderId = provider.Id;
 }
コード例 #6
0
 public OnProviderDisconnected(DateTime dateTime, Provider provider)
     : base(dateTime)
 {
     Provider = provider;
 }
コード例 #7
0
 public OnProviderRemoved(Provider provider)
 {
     Provider = provider;
     ProviderId = provider.Id;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
 public void OnProviderDisconnected(Provider provider) => OnEvent(new OnProviderDisconnected(this.framework.Clock.DateTime, provider));
コード例 #10
0
 public void OnProviderRemoved(Provider provider) => OnEvent(new OnProviderRemoved(provider));