--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
So much time since I last touched child containers...Once resolution went up to the parent container it would not go back to resolve from the child as the direction is one way.The right question to be answered is "what is your scenario?" Experience shows that more often than not, a conceptually simpler solution can be had that does not involve child containers.On Sep 6, 2017 8:01 PM, "Xi Shen" <david...@gmail.com> wrote:Hi,--Is Child container still in use in Windsor 4.0? I had some issue using child container, and opened an ticket https://github.com/castleproject/Windsor/issues/323, but nobody replies...I wonder if I am using some obsolete technique that nobody cares.If child container is obsolete, what is the modern replacement?Thanks,David
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Castle Project Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/castle-project-users/RH28ZoTfwxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Hi Ken,My scenario is, I want to use DI in my unit test, and I need to override some dependency with mock instance.I know some people say we should not use DI in unit test. But I think unit test can also be used to verify if the DIs are configured correctly.I would also like to learn a better way to very DI configuration in real product scenario.Thanks,David
On Thu, Sep 7, 2017 at 2:01 PM Ken Egozi <ego...@gmail.com> wrote:
So much time since I last touched child containers...Once resolution went up to the parent container it would not go back to resolve from the child as the direction is one way.The right question to be answered is "what is your scenario?" Experience shows that more often than not, a conceptually simpler solution can be had that does not involve child containers.On Sep 6, 2017 8:01 PM, "Xi Shen" <david...@gmail.com> wrote:Hi,--Is Child container still in use in Windsor 4.0? I had some issue using child container, and opened an ticket https://github.com/castleproject/Windsor/issues/323, but nobody replies...I wonder if I am using some obsolete technique that nobody cares.If child container is obsolete, what is the modern replacement?Thanks,David
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Castle Project Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/castle-project-users/RH28ZoTfwxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Hi Ken,My scenario is, I want to use DI in my unit test, and I need to override some dependency with mock instance.I know some people say we should not use DI in unit test. But I think unit test can also be used to verify if the DIs are configured correctly.I would also like to learn a better way to very DI configuration in real product scenario.Thanks,David
On Thu, Sep 7, 2017 at 2:01 PM Ken Egozi <ego...@gmail.com> wrote:
So much time since I last touched child containers...Once resolution went up to the parent container it would not go back to resolve from the child as the direction is one way.The right question to be answered is "what is your scenario?" Experience shows that more often than not, a conceptually simpler solution can be had that does not involve child containers.On Sep 6, 2017 8:01 PM, "Xi Shen" <david...@gmail.com> wrote:Hi,--Is Child container still in use in Windsor 4.0? I had some issue using child container, and opened an ticket https://github.com/castleproject/Windsor/issues/323, but nobody replies...I wonder if I am using some obsolete technique that nobody cares.If child container is obsolete, what is the modern replacement?Thanks,David
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Castle Project Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/castle-project-users/RH28ZoTfwxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
Hi Ken,My scenario is, I want to use DI in my unit test, and I need to override some dependency with mock instance.I know some people say we should not use DI in unit test. But I think unit test can also be used to verify if the DIs are configured correctly.I would also like to learn a better way to very DI configuration in real product scenario.Thanks,David
On Thu, Sep 7, 2017 at 2:01 PM Ken Egozi <ego...@gmail.com> wrote:
So much time since I last touched child containers...Once resolution went up to the parent container it would not go back to resolve from the child as the direction is one way.The right question to be answered is "what is your scenario?" Experience shows that more often than not, a conceptually simpler solution can be had that does not involve child containers.On Sep 6, 2017 8:01 PM, "Xi Shen" <david...@gmail.com> wrote:Hi,--Is Child container still in use in Windsor 4.0? I had some issue using child container, and opened an ticket https://github.com/castleproject/Windsor/issues/323, but nobody replies...I wonder if I am using some obsolete technique that nobody cares.If child container is obsolete, what is the modern replacement?Thanks,David
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Castle Project Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/castle-project-users/RH28ZoTfwxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Castle Project Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/castle-project-users/RH28ZoTfwxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
Svetoslav Milenov (Sunny)
Artificial Intelligence is no match for natural stupidity.
--
You received this message because you are subscribed to a topic in the Google Groups "Castle Project Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/castle-project-users/RH28ZoTfwxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
class StartUp
{
public StartUp(): this(c =>{}) {}
public StartUp(Axtion<IWindsorContainer> customWireup) {}
public void Configuration(IAppBuilder app)
{
...
var container = new WindsorContainer();
customWireup(container);
container.Install(FromAssembly.This());
... }
}
\\Installer
.Register(Component.For<SomeClient>().DependsOn(Dependency.OnComponent(typeof(HttpClient), "someHttpClient"))).Register(Component.For<HttpClient>().UsingFactoryMethod((kernal, model) =>{ var config = kernal.Resolve<ISomeConfig>(); return new HttpClient { BaseAddress = config.Endpoint };}).Named("someHttpClient").LifestyleSingleton())
\\Fixture
c.Register(Component.For<HttpClient>()
.UsingFactoryMethod((kernal, model) => fakeServer.HttpClient)
.Named("someHttpClient").LifestyleTransient());