What is the order of execution of the endpoint behaviors in WCF ? I want the logging to happen only if the request passes the validation block. But in my case, even though the validation fails, the requests are logged by the auditing interceptor.
I have two behavior extensions:
<behaviorExtensions>
<add name="validation"/>
<add name="Auditing"/>
</behaviorExtensions>
and then in my behaviors:
<behaviors>
<endpointBehaviors>
<validation ruleset"AuthenticationRuleSet"/>
<Auditing />
</endpointBehaviors>
</behaviors>
From MSDN
For validation purposes, maybe you should take a look at Message Inspectors