MVC ActionFilter like attributes for WCF

Viewed 2487

Is there a way I can create custom method attributes for WCF that allow me to easily decorate a service method with a pre filter much like MVC uses action filters. I plan to use them for authentication and authorization. This is for a RESTful service whose requests are carrying an authentication cookie.

I am more interested in how to create the attributes rather than the authentication side of things. Does the HTTP Toolkit offer anything?

Thanks

1 Answers
Related