WCF IDispatchMessageInspector for passing an instance of an object to a service context

In my WCF service. I have a GetCustomerInfo service

I intercept the WCF message in the AfterReceiveRequest method. In AfterReceiveRequest, I create an instance of the myClass object that I want to use in the GetCustomerInfo service.

I do not want to use a static class, data can be cross-pollinated.

Can someone help me or advise me on the best way to do this.

+4
source share

Source: https://habr.com/ru/post/1534810/


All Articles