Castle.Facilities.WcfIntegration.Proxy.WcfRemotingInterceptor.InvokeRealProxy C# (CSharp) Method

InvokeRealProxy() private static method

private static InvokeRealProxy ( RealProxy realProxy, WcfInvocation wcfInvocation ) : void
realProxy RealProxy
wcfInvocation WcfInvocation
return void
		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;
		}