Fairly new to WCF. I have a service that has a Service Behavior on it that adds a class(MessageLoggerInspector) that implements the IDispatchMessageInpector interface. In MessageLoggerInspector, I save off the raw request and response for
the service to a SQL table. I return a unique link for that record in the table for both request and response. I have a private property that holds both these values and when the response is saved off, it saves a link to the request and the request
record is updated with a link to the response. All this works perfectly.
I am wondering if there is some way to actually expose those links to the service itself so that I could use the link references in the service. I've looked at the System.ServiceModel.IClientChannel and System.ServiceModel.InstanceContext objects that
are passed into the AfterReceiveRequest method, but I don't see anything linking to the service as the objects seem to be more communication oriented.
View Complete Post