Beispiel #1
0
		public void OnProviderStatusChanged(Provider provider)
		{
			switch (provider.Status)
			{
			case ProviderStatus.Connected:
				this.OnProviderConnected(provider);
				break;
			case ProviderStatus.Disconnected:
				this.OnProviderDisconnected(provider);
				break;
			}
			this.OnEvent(new OnProviderStatusChanged(provider));
		}
 public OnProviderStatusChanged(Provider provider)
 {
     this.provider = provider;
 }
Beispiel #3
0
		internal override void OnProviderDisconnected_(Provider provider)
		{
			foreach (Strategy current in this.strategies)
			{
				current.OnProviderDisconnected_(provider);
			}
			base.OnProviderDisconnected_(provider);
		}
Beispiel #4
0
		public void OnProviderDisconnected(Provider provider)
		{
			this.OnEvent(new OnProviderDisconnected(provider));
		}
Beispiel #5
0
 internal virtual void OnProviderDisconnected_(Provider provider)
 {
     if (this.raiseEvents)
     {
         this.OnProviderDisconnected(provider);
     }
     for (LinkedListNode<Strategy> linkedListNode = this.strategies.First; linkedListNode != null; linkedListNode = linkedListNode.Next)
     {
         linkedListNode.Data.OnProviderDisconnected_(provider);
     }
 }
Beispiel #6
0
		public void OnProviderRemoved(Provider provider)
		{
			this.OnEvent(new OnProviderRemoved(provider));
		}
Beispiel #7
0
 protected internal virtual void OnProviderDisconnected(Provider provider)
 {
 }
Beispiel #8
0
 internal void OnProviderDisconnected(Provider provider)
 {
     if (this.strategy != null && this.strategy.status == StrategyStatus.Running)
     {
         this.strategy.OnProviderDisconnected_(provider);
     }
 }
 public OnProviderDisconnected(Provider provider)
 {
     this.provider = provider;
 }
Beispiel #10
0
 public OnProviderRemoved(Provider provider)
 {
     this.provider = provider;
 }
Beispiel #11
0
 public void RemoveProvider(Provider provider)
 {
     this.providers.Remove(provider);
     this.framework.eventServer.OnProviderRemoved(provider);
 }