Dynamic Routing Updates

Can I modify the message filters used by a routing service after the service is started?

No, the filter objects are not thread safe. Modifying the message filters while the routing service is running creates the risk of getting incorrect results while the filter is being changed. This is especially noticeable when the filters might be run over a long period of time, such as for sessionful transports.

Instead, replace the entire router configuration when you want to make updates. The router service supports reconfiguration without having to stop the service or interrupt existing connections. To do this, retrieve the RoutingExtension object that was added to the ServiceHost and call the ApplyConfiguration method on the extension with your new configuration. This will change the configuration being used for all new connections that come in.

Dynamic reconfiguration was added to the routing service starting with .Net 4 Beta 2.