asp.net - Does IHttpModule module work with WCF service, -


i have wcf service. want each , request wcf operation scanned throughthe ihttpmodule module. not hitting ihttpmodule.

any highly appreciated.

httpmodules work wcf if run wcf service in asp.net compatibility mode. can enable asp.net compatibility mode either of following way.

  1. using web.config

    < system.servicemodel> < servicehostingenvironment aspnetcompatibilityenabled="true"/> < /system.servicemodel>

  1. using attribute

    [aspnetcompatibilityrequirements(requirementsmode = aspnetcompatibilityrequirementsmode.allowed)] public class service : iservice { // ... }


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -