private void NotifyExecutions(Order.Order order) { IList <ExecutionBuilder> executionBuilders = _executionEventHandler.GetExecutionBuilders(); foreach (ExecutionBuilder executionBuilder in executionBuilders) { executionBuilder.Order(order); Execution execution = executionBuilder.NewInstance(); if (IsExecutionForOrder(order, execution) && ExecutionEvent != null) { ExecutionEvent(execution); } } _executionEventHandler.Clear(); }
private bool NotifyExecutions(Order.Order order) { IList <ExecutionBuilder> executionBuilders = _executionEventHandler.GetExecutionBuilders(); var res = false; foreach (ExecutionBuilder executionBuilder in executionBuilders) { executionBuilder.Order(order); Execution execution = executionBuilder.NewInstance(); if (IsExecutionForOrder(order, execution) && ExecutionEvent != null) { ExecutionEvent(execution); res = true; } } _executionEventHandler.Clear(); return(res); }