Can you post your registration code for ActionMethodResultInvokerFacade?

On Fri, Dec 10, 2010 at 12:04 AM, Kim <[email protected]> wrote:

> Hi,
>
> I’m a newbie to Castle Windsor and I tried to implement Jimmy Bogard’s
> StructureMap implementation of his IResultMethod with its handlers,
> facades etc in Castle but it only worked to a certain point.  Has
> anyone tried to implement it in Castle?   I’m sure just looking at
> Jimmy’s code someone should be able to see pretty quickly how it
> should be done in Castle.  For your info I get to the point
>
>       var actionMethod = container.Resolve<IActionMethodResult>();
>
>                     var openWrappedType =
> typeof(ActionMethodResultInvokerFacade<>);
>                     var actionMethodResultType =
> actionMethod.GetType();
>                     var wrappedResultType =
> openWrappedType.MakeGenericType(actionMethodResultType);
>
> But I get the error saying no component can be found for
> ActionMethodResultInvokerFacade<my implementation of the IResultMethod
> here>
>
> Jimmy’s stuff at:
>
>
> http://www.lostechies.com/blogs/jimmy_bogard/archive/2010/05/04/dependency-injection-in-asp-net-mvc-action-results.aspx
>
> Regards
>
> Kim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.
>
>


-- 
"Any fool can write code that a computer can understand. Good programmers
write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en.

Reply via email to