Is there a life cycle that executes WCF requests? In particular, I need to be able to intercept and possibly cancel requests made before they reach the method that was called.
You need to implement IDispatchMessageInspector and enter it in the serivce behavior stitch.
use IDispatchMessageInspector.AfterReceiveRequest to accept or reject the request.
see: http://msdn.microsoft.com/en-us/library/system.servicemodel.dispatcher.idispatchmessageinspector.aspx
and
http://www.codeproject.com/KB/WCF/WCFIPfilter.aspx
You can write your code in
void Application_BeginRequest(object sender, EventArgs e) { }
OR
void Application_EndRequest(object sender, EventArgs e) { }
in global.asax on the server.
Source: https://habr.com/ru/post/1716832/More articles:Does a Delphi project create an MSBuild project to create .Net dependencies? - .netFree mapping - entities and class maps in different assemblies - nhibernateПограничный минимально окружающий текст с использованием CSS - htmlRed5 Live - streamИзменение Web.config во время/после проекта Web Setup - installationПограничные потоки по таблице, но не абзацы с встроенным дисплеем - htmlsimple shell script in cygwin - unixUsing 'this' inside a link generated by a javascript object - javascriptIs there a list of FlashVars reserved names? - flexIs there a way to print a link to the console? - objective-cAll Articles