How to connect Enterprise Library objects dynamically?
You can connect ports of Enterprise Library objects dynamically by calling connect()/disconnect() or map()/unmap() methods of ports. Please note that the end ports will not notice established connections and will continue behaving according to the out-of-date connections that were established at startup. To bring the end port connections up to date you need to call method refreshConnections() of the end ports that are dynamically reconnected.