public IDisposable CreateScope(TScopeName scopeName, out IScopedInstanceProvider <TScopeName> provider) { var scopeTyped = ServiceProvider.CreateScope(); provider = new ScopedInstanceProvider <TScopeName>(scopeName, scopeTyped.ServiceProvider); return(scopeTyped); }
internal Pair(IDisposable scope, IScopedInstanceProvider <TScopeName> instanceProvider) { Scope = scope; InstanceProvider = instanceProvider; }