internal static Object SyncProcessMessageCallback(Object[] args)
{
IMessage reqMsg = (IMessage) args[0];
IMessageSink replySink = (IMessageSink) args[1];
// Call the dynamic sinks to notify that the async call
// has completed
Thread.CurrentContext.NotifyDynamicSinks(
reqMsg, // this is the async reply
true, // bCliSide
false, // bStart
true, // bAsync
true); // bNotifyGlobals
// call the original reply sink now that we have moved
// to the correct client context
return replySink.SyncProcessMessage(reqMsg);
}