Exemplo n.º 1
0
        private ISolidProxyInvocation GetInvocation(object caller, MethodInfo method, object[] args, IDictionary <string, object> invocationValues, bool canCancel)
        {
            //
            // create the proxy invocation and return the result,
            //
            var proxyInvocationConfiguration = ProxyConfiguration.GetProxyInvocationConfiguration(method);
            var proxyInvocation = proxyInvocationConfiguration.CreateProxyInvocation(caller, this, args, invocationValues, canCancel);

            return(proxyInvocation);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns the invocation advices for specified method.
        /// </summary>
        /// <param name="method"></param>
        /// <returns></returns>
        public IEnumerable <ISolidProxyInvocationAdvice> GetInvocationAdvices(MethodInfo method)
        {
            var proxyInvocationConfiguration = ProxyConfiguration.GetProxyInvocationConfiguration(method);

            return(proxyInvocationConfiguration.GetSolidInvocationAdvices());
        }