Welcome to MSDN Blogs Sign in | Join | Help

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

Published Tuesday, July 10, 2007 5:00 AM by Nicholas Allen

Comments

Tuesday, July 10, 2007 10:09 AM by Jason Haley

# Interesting Finds: July 10, 2007

Tuesday, July 10, 2007 10:10 AM by Jason Haley

# Interesting Finds: July 10, 2007

Tuesday, July 10, 2007 12:58 PM by Nicholas Allen's Indigo Blog

# WCF Case Studies

The Microsoft case study site is a collection of easily-digestible executive-style summaries of people

Wednesday, July 11, 2007 5:58 PM by Sam Gentile

# New and Notable 177

Multithreading and Concurrency Software Transactional Memory Part IV - Thread-Bound Transactions Software

Thursday, March 20, 2008 1:38 PM by Nicholas Allen's Indigo Blog

# Validation Behaviors for Client and Service

The other day I talked about the built-in service validation behaviors but these behaviors are only a

New Comments to this post are disabled
 
Page view tracker