I need to add a custom behavior extension to my WCF client endpoints. I tried to do this through the configuration, but was bitten by the frequently mentioned error, where the WFC configuration cannot parse the type name correctly. Can I do this programmatically?
I cannot change configuration sections at runtime because they are read-only. I know that if I get an instance of a client proxy (i.e. ClientBase), I can add an instance of my user behavior to its Endpoint.Behaviors. However, I would have to do this for each instance.
Can I get endpoints around the world and pre-add them (for example, in Global.asax), or are these endpoints created and temporarily discarded?
wcf behavior
Trinition Jul 28 '09 at 15:48 2009-07-28 15:48
source share