Hello.
Is there any event before the web service (svc) method is processed?
My web service is Singleton.
I need to configure some settings before the method will be executed.
To insert a call to a configuration method in each method of a web service is somehow not good.

    1 answer 1

    If Singleton, then in the constructor of the service. Or at the start of the host.

    • one
      Here, for example, I need to set the culture of Thread.CurrentThread.CurrentCulture current user, and then only execute the method, and when a startup or in the designer it is executed only once ... - Acne
    • one
      In WCF, I add an inspector for this, with the AfterRecieveRequest and BeforeSendReply methods overlapped. And in the AfterRecieveRequest method, I do what I need with the current thread. - Modus