Which OnCreate do you mean?
You can still do this:
Container.Register(Component.For<IFoo>().ImplementedBy<Foo>()
.OnCreate((kernel, instance) =>
{/*something*/}));
And the Action overload is for convenience if you don't care about the
kernel.
K
On 13/01/2012 12:41 AM, mynkow wrote:
I have several components which do some extra work when they are
created. This extra work is related to the windsor container. The new
Action<T> delegate for the method OnCreate(...) does not provide
/kernel/ parameter. UsingFactoryMethod is not an option because I have
other problems there. --
You received this message because you are subscribed to the Google
Groups "Castle Project Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/castle-project-users/-/L0070VBACqAJ.
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-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" 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-users?hl=en.