Skip to content

Objects created without explicit binding began to use the specified default lifetime instead of Transient #141

@NikolayPianikov

Description

@NikolayPianikov

@NikolayPianikov

I created a minimal repro project and published it here:

https://github.com/YoshihiroIto/pure-di-lifetime-regression-repro

It compares the same setup across these versions:

  • 2.3.3
  • 2.3.4
  • 2.3.5-beta1

Setup:

  • DefaultLifetime(Singleton)
  • MyDialog is not explicitly registered with .Bind<MyDialog>()
  • resolution happens multiple times through Func<MyDialog>

Observed result on my side:

  • 2.3.3: ReferenceEquals = False
  • 2.3.4: ReferenceEquals = True
  • 2.3.5-beta1: ReferenceEquals = True

So the behavior changed between 2.3.3 and 2.3.4, and 2.3.5-beta1 still behaves like 2.3.4.

Please let me know if you want me to reduce the repro even further.

Originally posted by @YoshihiroIto in #140

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions