Validation Application Block operationBehavior in Configuration

Topics: Validation Application Block
May 16, 2010 at 3:48 PM

Hi,

In the documentation is an example on how to configure operationBehaviors in XML: http://msdn.microsoft.com/en-us/library/dd140110.aspx.

    <operationBehaviors>
      <behavior name="operationBehavior">
        <validation enabled="true" ruleset="Bank2Rules"/>
      </behavior>
    </operationBehaviors>


As far as I know operation behaviors can only be added via attributes. Does anyone know how this is supposed to work? I would like to use this approach and remove the attributes from code and place them in the configuration.

Many thanks

Jürg

May 17, 2010 at 9:03 AM

I'm currently looking into this.  I honestly really haven't tried this so I'm trying to look into the unit tests.

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com