private static void InvokeRealProxy(RealProxy realProxy, WcfInvocation wcfInvocation)
{
var message = new MethodCallMessage(wcfInvocation.Method, wcfInvocation.Arguments);
var returnMessage = (IMethodReturnMessage)realProxy.Invoke(message);
if (returnMessage.Exception != null)
{
var exception = ExceptionHelper.PreserveStackTrace(returnMessage.Exception);
throw exception;
}
wcfInvocation.ReturnValue = returnMessage.ReturnValue;
}