private void OnOrdersMatched(OrdersMatchedEventArgs e)
 {
     InvokeOrdersMatched(e);
 }
 public void OnMatch(OrdersMatchedEventArgs e)
 {
     Matches.Add(e);
 }
 private void InvokeOrdersMatched(OrdersMatchedEventArgs e)
 {
     var eventCopy = OrdersMatched;
     if (eventCopy != null)
         eventCopy(e);
 }
Esempio n. 4
0
 private void OnOrdersMatched(OrdersMatchedEventArgs e)
 {
     foreach (var match in e.OrderMatches)
     {
         var ownerSession = _orderOwners[match.OrderID];
         if (match.MatchType == MatchType.Full)
         {
             _orderOwners.Remove(match.OrderID);
         }
         _orderMatchCallback(match, ownerSession);
     }
 }