Beispiel #1
0
        internal void OnPositionClosed(Portfolio portfolio, Position position, bool queued)
        {
            var e = new OnPositionClosed(portfolio, position);

            if (queued)
            {
                this.queue.Enqueue(e);
            }
            else
            {
                OnEvent(e);
            }
        }
Beispiel #2
0
 internal void OnPositionClosed(Portfolio portfolio, Position position, bool queued)
 {
     var e = new OnPositionClosed(portfolio, position);
     if (queued)
         this.queue.Enqueue(e);
     else
         OnEvent(e);
 }