/// <summary> /// Creates a new <see cref="IMethodInvocation"/> implementation that wraps /// the given <paramref name="callMessage"/>, with the given ultimate /// target object. /// </summary> /// <param name="callMessage">Remoting call message object.</param> /// <param name="target">Ultimate target of the method call.</param> public TransparentProxyMethodInvocation(IMethodCallMessage callMessage, object target) { this.callMessage = callMessage; this.invocationContext = new Hashtable(); this.target = target; this.arguments = callMessage.Args; this.inputParams = new TransparentProxyInputParameterCollection(callMessage, this.arguments); this.allParams = new ParameterCollection(arguments, callMessage.MethodBase.GetParameters(), info => true); }
/// <summary> /// Creates a new <see cref="IMethodInvocation"/> implementation that wraps /// the given <paramref name="callMessage"/>, with the given ultimate /// target object. /// </summary> /// <param name="callMessage">Remoting call message object.</param> /// <param name="target">Ultimate target of the method call.</param> public TransparentProxyMethodInvocation(IMethodCallMessage callMessage, object target) { this.callMessage = callMessage; this.invocationContext = new Dictionary <string, object>(); this.target = target; this.arguments = callMessage.Args; this.inputParams = new TransparentProxyInputParameterCollection(callMessage, this.arguments); this.allParams = new ParameterCollection(arguments, callMessage.MethodBase.GetParameters(), info => true); }
/// <summary> /// Creates a new <see cref="IMethodInvocation"/> implementation that wraps /// the given <paramref name="callMessage"/>, with the given ultimate /// target object. /// </summary> /// <param name="callMessage">Remoting call message object.</param> /// <param name="target">Ultimate target of the method call.</param> public TransparentProxyMethodInvocation(IMethodCallMessage callMessage, object target) { this.callMessage = callMessage; this.invocationContext = new Hashtable(); this.target = target; this.arguments = callMessage.Args; this.inputParams = new TransparentProxyInputParameterCollection(callMessage, this.arguments); this.allParams = new ParameterCollection(arguments, callMessage.MethodBase.GetParameters(), delegate(ParameterInfo info) { return(true); }); }
public TransparentProxyMethodInvocation(IMethodCallMessage callMessage, object target) { Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(callMessage, "callMessage"); this.callMessage = callMessage; this.invocationContext = new Dictionary <string, object>(); this.target = target; this.arguments = callMessage.Args; this.inputParams = new TransparentProxyInputParameterCollection(callMessage, this.arguments); this.allParams = new ParameterCollection(arguments, callMessage.MethodBase.GetParameters(), info => true); }
public TransparentProxyMethodInvocation(IMethodCallMessage callMessage, object target) { Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(callMessage, "callMessage"); this.callMessage = callMessage; this.invocationContext = new Dictionary<string, object>(); this.target = target; this.arguments = callMessage.Args; this.inputParams = new TransparentProxyInputParameterCollection(callMessage, this.arguments); this.allParams = new ParameterCollection(arguments, callMessage.MethodBase.GetParameters(), info => true); }