Hello World Example For Sub-Containers/Facade
using Zenject;
public class TestInstaller : MonoInstaller
{
public override void InstallBindings()
{
Container.BindInterfacesAndSelfTo<Greeter>()
.FromSubContainerResolve()
.ByMethod(Install_greeter)
.AsSingle()
.NonLazy();
}
private void Install_greeter(DiContainer subContainer)
{
subContainer.Bind<Greeter>()
.AsSingle();
subContainer.BindInterfacesAndSelfTo<GoodbyeHandler>()
.AsSingle();
subContainer.BindInterfacesAndSelfTo<HelloHandler>()
.AsSingle();
}
}