I need SelectOutput-like object with more than two outputs. How can I implement it?
You can use new Enterprise Library object, SelectOutput5. This is a SelectOutput with 5 exits. This object routes the incoming entities to one of the five output ports depending on (probabilistic or deterministic) conditions. It works in two modes: Conditions or Probabilities. • In Conditions mode the user should provide 4 conditions. When an entity arrives, the coditions are evaluated sequentially, one by one. If condition 0 is true, the entity exits the exit 0, otherwise condition 1 is evaluated, etc. If all conditions are false, the entity exits via the last (default exit). The condition may depend on the entity as well as on any external factors. • In Probabilities mode the user should provide 5 probabilities for five exits (if their sum does not equal 1, they are normalized). The exit the entity takes is randomly defined according to the specified probabilities.