예제 #1
0
        /// <summary>
        /// Redirects the specified invocation.
        /// </summary>
        /// <typeparam name="TParam">The type of the subject parameter.</typeparam>
        /// <param name="invocation">The invocation.</param>
        /// <returns>The proxy builder object</returns>
        public IIntoRedirector <TSubject, TResult> Redirect <TResult>(Expression <Func <TSubject, TResult> > invocation)
        {
            var child = new ProxyBuilder <TSubject, TResult>()
            {
                generator = this.generator,
                map       = this.map
            };

            return(child.SetInvocation(invocation));
        }
예제 #2
0
        IToRedirector <TSubject, TProxy, TResult> IProxyBuilder <TSubject, TProxy> .Redirect <TResult>(Expression <Func <TSubject, TResult> > invocation)
        {
            var child = new ProxyBuilder <TSubject, TProxy, TResult>()
            {
                generator = this.generator,
                map       = this.map,
            };

            return(child.SetInvocation(invocation) as IToRedirector <TSubject, TProxy, TResult>);
        }
예제 #3
0
        public new IToRedirector <TSubject, TProxy, TResult> Redirect <TResult>(Expression <Func <TSubject, TResult> > invocation)
        {
            var builder = new ProxyBuilder <TSubject, TProxy, TResult>(
                generator: this.generator,
                map: this.map
                );

            builder.SetInvocation(invocation);

            return(builder);
        }