Freigeben über


ChannelFactory Behaviors

How do I attach a custom behavior to a dynamically generated proxy object?

This one should be easy if you've read the past two articles about modifying a ChannelFactory after creation. Although behaviors can't be specified while creating the ChannelFactory, the ChannelFactory has a local endpoint object that can have behaviors attached. Changing the endpoint for behaviors works exactly the same as changing the endpoint for contracts. As with all modifications to endpoints though, you need to make all changes prior to calling Open (or the first call with proxies) or you'll find that the endpoint has become immutable.

Next time: Reader Quotas with Untyped Messages

Comments

  • Anonymous
    July 10, 2007
    The Microsoft case study site is a collection of easily-digestible executive-style summaries of people

  • Anonymous
    July 11, 2007
    Multithreading and Concurrency Software Transactional Memory Part IV - Thread-Bound Transactions Software

  • Anonymous
    March 20, 2008
    The other day I talked about the built-in service validation behaviors but these behaviors are only a

  • Anonymous
    December 02, 2008
    Multithreading and Concurrency Software Transactional Memory Part IV - Thread-Bound Transactions Software Transactional Memory Part V - Integration with System.Transactions Parallel LINQ Restating the Concurrency Problem Herb Sutter is starting a new