Hi,
is there a way to access object on which intercepted method was called inside custom IMessageSink? I would like to set some properties on that object that would scope only for duration of method call, manage them, dispose etc...
public IMessage SyncProcessMessage(IMessage msg) {
Preprocess(msg);
IMessage returnMethod = m_next.SyncProcessMessage(msg);
PostProcess(msg, returnMethod);
return returnMethod;
}
I know it possible to pass data between ContextBoundObject and IMessageSink using LogicalCallContext.SetData, but i would prefet to work directly on ContextBoundObject instance.
Thanks,Pawel