• Ninject ambient scope and deterministic dispose

    When working with Ninject, one can specify standard lifetime designators like InSingletonScope and InTransientScope in the bindings section. There are two important situations when one might want to define a custom scope - to reuse instances within the lifetime of a scope (ambient instances) and to specify a deterministic dispose of resources when a scope lifetime ends.

    Jasmin Muharemovic - Thursday, Apr 21, 2016