Inject interface with access to OpenScope and IsScoped check

Issue #268 resolved
Maksim Volkau
repo owner created an issue

Candidates may be:

  1. IScopeContext enhanced with OpenScope functionality, or with OpenScope ext method. Then should be implemented by Container.

  2. Based on IResolverContext:

    interface IResolverContext : IResolver
    {
        bool IsScoped; // false for root
        IResolverContext OpenScope(object name = null, Action<IRegister> useInstances = null);
    }

Note: IResolverContext is part of FactoryDelegate context parameter.