LifetimeScope
Caution: Page
I Modal
's prepend to the LifetimeScope
component to the Auto Run
must be disabled (in the case of WithParameter, this can cause ordering issues when the dependency is resolved).
public class SignInModalLifetimeScope : VContainer.Unity.LifetimeScope
{
[SerializeField] private SignInModalView view;
protected override void Configure(IContainerBuilder builder)
{
base.Configure(builder);
builder.RegisterComponent(view);
builder.Register<SignInModalLifecycle>(Lifetime.Singleton);
// builder.Register<SignInUseCase>(Lifetime.Singleton).AsImplementedInterfaces();
builder.Register<MockSignInUseCase>(Lifetime.Singleton).AsImplementedInterfaces();
}
}
RegisterComponent
Register view withLifecycle enrollment
UseCase Registration
Last updated