Change RegisterInstance defaults to IfUnresolved.Replace and to Reuse.InCurrentScope

Issue #232 resolved
Maksim Volkau
repo owner created an issue

That is more common use per my observation.

In case of current scope is not available it should fallback to Singleton.


I think I need to add new Extension method now. So I would like to replace call to:

container.RegisterInstance<X>(x, Reuse.InCurrentScope, IfAlreadyRegistered.Replace, preventDisposal: true);



Comments (6)

  1. Log in to comment