According this article in MSDN, the evaluation order of WCF behaviors is:
I have a service that uses a ServiceAuthorizationManager class to perform some custom security validation for requests. This authorization manager is hooked into a ServiceAuthorizationBehavior which implements IServiceBehavior.
I also have custom behavor defined that implements IEndpointBehavior.
According the order above, endpoint behaviors are supposed to be evaluated before service behaviors, however, logging proved otherwise. The ServiceAuthorizationBehavior was being evaluated before the endpoint behavior.
Is this a bug? What is going on here?
Thanks, Mohammed
The documentation is incorrect. The actual order is
Thanks for pointing this issue, I'll notify the documentation team to have this fixed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With