Exemple #1
0
        public void OnMtEvent(MtEvent e)
        {
            Log.DebugFormat("OnMtEvent: begin.quote = {0}", e);

            ExecuteCallbackAction(a => a.OnMtEvent(e));

            Log.Debug("OnMtEvent: end.");
        }
Exemple #2
0
        public void OnMtEvent(MtEvent mtEvent)
        {
            Log.Debug("OnMtEvent: begin.");

            ExecuteCallbackAction(a => a.OnMtEvent(mtEvent));

            Log.Debug("OnMtEvent: end.");
        }
Exemple #3
0
        public void SendEvent(MtEvent mtEvent)
        {
            Log.DebugFormat("SendEvent: begin. event = {0}", mtEvent);

            FireOnMtEvent(mtEvent);

            Log.Debug("SendEvent: end.");
        }
Exemple #4
0
        private void Expert_OnMtEvent(MtExpert expert, MtEvent e)
        {
            Log.DebugFormat("Expert_OnMtEvent: begin. expert = {0}, event = {1}", expert, e);

            _service.OnMtEvent(e);

            Log.Debug("Expert_OnMtEvent: end.");
        }
Exemple #5
0
        public void OnMtEvent(MtEvent e)
        {
            Log.DebugFormat("OnMtEvent: begin. event = {0}", e);

            MtEventReceived?.Invoke(e);

            Log.Debug("OnMtEvent: end.");
        }
Exemple #6
0
        public void OnMtEvent(MtEvent mtEvent)
        {
            Log.DebugFormat("OnMtEvent: begin. event = {0}", mtEvent);

            MtEventReceived?.Invoke(this, new MtEventArgs(mtEvent));

            Log.Debug("OnMtEvent: end.");
        }
Exemple #7
0
        public override void SendEvent(MtEvent mtEvent)
        {
            Log.DebugFormat("SendEvent: begin. event = {0}", mtEvent);

            if (IsTestMode)
            {
                if (_stopTimer == null)
                {
                    _stopTimer = new System.Timers.Timer
                    {
                        Interval  = StopExpertInterval,
                        AutoReset = false
                    };
                    _stopTimer.Elapsed += _stopTimer_Elapsed;
                }
            }

            base.SendEvent(mtEvent);

            Log.Debug("SendEvent: end.");
        }
Exemple #8
0
 private void FireOnMtEvent(MtEvent mtEvent)
 {
     OnMtEvent?.Invoke(this, mtEvent);
 }
Exemple #9
0
 private void FireOnMtEvent(MtEvent mtEvent)
 {
     OnMtEvent?.Invoke(this, new MtEventArgs(mtEvent));
 }
Exemple #10
0
 public void SendEvent(MtEvent mtEvent)
 {
     FireOnMtEvent(mtEvent);
 }
Exemple #11
0
 public void OnMtEvent(MtEvent mtEvent)
 {
     MtEventReceived?.Invoke(this, new MtEventArgs(mtEvent));
 }
Exemple #12
0
 public MtEventArgs(MtEvent e)
 {
     Event = e;
 }
Exemple #13
0
 public void OnMtEvent(MtEvent mtEvent)
 {
     ExecuteCallbackAction(a => a.OnMtEvent(mtEvent));
 }