Beispiel #1
0
 private static void a9pwYGI8t(ProviderEventArgs e)
 {
     IMarketDataProvider provider = e.Provider as IMarketDataProvider;
     if (provider == null || provider == ProviderManager.MarketDataSimulator)
         return;
     Hashtable hashtable1 = DataManager.providers[provider] as Hashtable;
     if (hashtable1 == null)
         return;
     foreach (Hashtable hashtable2 in (IEnumerable)hashtable1.Values)
     {
         foreach (RequestItem reqItem in (IEnumerable)hashtable2.Values)
             provider.SendMarketDataRequest(reqItem.GetFIXMarketDataRequest());
     }
 }
Beispiel #2
0
		internal void UdPW4GYdNW(ProviderEventArgs obj0)
		{
			try
			{
				IProvider provider = obj0.Provider;
				foreach (StrategyBase strategyBase in this.aI6WvCF8X7(provider))
					strategyBase.QNbsERb0O(provider);
				this.metaMoneyManager.OnProviderDisconnected(provider);
				this.OnProviderDisconnected(provider);
			}
			catch (Exception ex)
			{
				this.x6bWBlLIvv(ex);
			}
		}
Beispiel #3
0
 private static void ProviderManager_Added(ProviderEventArgs args)
 {
   ProviderManager.Providers.Add(new Provider(args.Provider));
 }
Beispiel #4
0
		internal void txIWsJO2he(ProviderEventArgs obj0)
		{
			try
			{
				IProvider provider = obj0.Provider;
				foreach (StrategyBase strategyBase in this.aI6WvCF8X7(provider))
					strategyBase.Jwd3xKdmx(provider);
				this.metaMoneyManager.OnProviderConnected(provider);
				this.OnProviderConnected(provider);
			}
			catch (Exception ex)
			{
				this.x6bWBlLIvv(ex);
			}
		}
Beispiel #5
0
 private void ProviderManager_Disconnected(ProviderEventArgs args)
 {
   if (this.InvokeRequired)
   {
     // ISSUE: method pointer
     this.BeginInvoke((Delegate) new ProviderEventHandler(this.ProviderManager_Disconnected), new object[] { args });
   }
   else
     this.UpdateProviderStatus(args.Provider);
 }
Beispiel #6
0
 private void ProviderManager_Added(ProviderEventArgs args)
 {
   if (this.InvokeRequired)
   {
     // ISSUE: method pointer
     this.BeginInvoke((Delegate) new ProviderEventHandler(this.ProviderManager_Added), new object[]
     {
       (object) args
     });
   }
   else
     this.AddProvider(args.Provider);
 }
Beispiel #7
0
 private void SQ_ProviderManager_Disconnected(ProviderEventArgs args)
 {
   try
   {
     foreach (Strategy strategy in this.strategies.Values)
       strategy.OnDisconnected(args.Provider.Name);
   }
   catch (Exception ex)
   {
     this.EmitError(ex);
   }
 }
Beispiel #8
0
 private static void OnAdded(ProviderEventArgs e)
 {
     if (!(e.Provider is IExecutionProvider))
         return;
     IExecutionProvider executionProvider = (IExecutionProvider)e.Provider;
     foreach (SingleOrder singleOrder in OrderManager.orders.All)
     {
         if (singleOrder.Provider == executionProvider && !singleOrder.IsDone)
             executionProvider.RegisterOrder(singleOrder);
     }
 }