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.