Open swustyc opened 4 years ago
If the code is:
Container.Bind<Foo>()->WithId("TestID").AsSingle(); Container.Bind<Foo>();
I will meet the ZenjectException: Assert hit! Scope must be set for the previous binding! Please either specify AsTransient, As Cached, or AsSingle.
Container.Bind<Foo>()->WithId("TestID").AsSingle(); Container.Bind<Foo>()->AsCached();
I will meet the ZenjectException: Assert hit! Found multiple creation bindings for type 'Foo' in addtion to AsSingle.
Container.Bind<Foo>()->WithId("TestID").AsSingle(); Container.Bind<Foo>()->AsTransient();
Env
Problem
1
If the code is:
I will meet the ZenjectException: Assert hit! Scope must be set for the previous binding! Please either specify AsTransient, As Cached, or AsSingle.
2
If the code is:
I will meet the ZenjectException: Assert hit! Found multiple creation bindings for type 'Foo' in addtion to AsSingle.
3
If the code is:
I will meet the ZenjectException: Assert hit! Found multiple creation bindings for type 'Foo' in addtion to AsSingle.