Container.Bind<ICompanion>()
.To<RouMainMenuPresenterCompanion>()
.FromNewComponentSibling()
.WhenInjectedInto<MainMenuPresenter>();
Container.Bind<RouMainMenuPresenterCompanion>()
.FromResolve();
I want the same instance of RouMainMenuPresenterCompanion
to be injected in MainMenuPresenter as ICompanion
(FromNewComponentSibling
) and reuse this created instance in the future as RouMainMenuPresenterCompanion
for any resolver
Example above leads to circular dependency. How can I solve my problem?