Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
 public ServiceScopeFactory(IIocScopeResolverFactory factory)
 {
     _factory = factory;
 }