Пример #1
0
        public IDisposable CreateScope(TScopeName scopeName, out IScopedInstanceProvider <TScopeName> provider)
        {
            var scopeTyped = ServiceProvider.CreateScope();

            provider = new ScopedInstanceProvider <TScopeName>(scopeName, scopeTyped.ServiceProvider);

            return(scopeTyped);
        }
Пример #2
0
 internal Pair(IDisposable scope, IScopedInstanceProvider <TScopeName> instanceProvider)
 {
     Scope            = scope;
     InstanceProvider = instanceProvider;
 }