wcfasp.net-web-apiasp.net-web-api2wcf-web-api

Service Behavior Equivalent in ASP.NET WEB API


I am modifying an existing WCF service to a WEB API. In the WCF service, we have some operation behaviors that checks the validity of session id passed in SOAP header.Do we have any equivalent for Operation Behaviors in WEB API, which will get invoked before and after actual service call?


Solution

  • In WebAPI it's called ActionFilters, please look at documentation about them