예제 #1
0
 private void OnOrdersMatched(OrdersMatchedEventArgs e)
 {
     InvokeOrdersMatched(e);
 }
 public void OnMatch(OrdersMatchedEventArgs e)
 {
     Matches.Add(e);
 }
예제 #3
0
 private void InvokeOrdersMatched(OrdersMatchedEventArgs e)
 {
     var eventCopy = OrdersMatched;
     if (eventCopy != null)
         eventCopy(e);
 }
예제 #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);
     }
 }