Hi again
I managed to do what I wanted, almost. My library inspects the user's
assembly and automatically registers the Foo component in windsor container.
The problem is that the user may want to register a component for the same
type in his code. What should I do?
[Test]
public void Test()
{
Castle.Windsor.IWindsorContainer container = new
Castle.Windsor.WindsorContainer();
container.Register(SnapshotComponent<Foo>());
var foor = container.Resolve<Foo>();
}
public ComponentRegistration<T> SnapshotComponent<T>() where T :
AggregateRoot
{
return
Component.For<T>()
.LifeStyle.Transient
.Proxy.MixIns(SnapshotableProxy.CreateSnapshotable<T>());
}
--
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.