public LifetimeTests() { Reset(); Registrar.Register <ISingletonBar, Bar>(LifetimeType.Singleton); Registrar.Register <IScopedBar, Bar>(LifetimeType.Scoped); Registrar.Register <ITransientBar, Bar>(); Registrar.Register <ScopedTest>(); _scopeFactory = Resolver.GetService <IIocScopeResolverFactory>(); }
public ServiceScopeFactory(IIocScopeResolverFactory factory) { _factory = factory; }