public IDependencyScope BeginScope()
        {
            //ILifetimeScope lifetimeScope = _container.BeginLifetimeScope(ApiRequestTag);
            ILifetimeScope lifetimeScope = _accessor.GetLifetimeScope(null);

            return(new AutofacWebApiDependencyScope(lifetimeScope));
        }
예제 #2
0
 public ILifetimeScope GetLifetimeScope(Action <ContainerBuilder> configurationAction)
 {
     return(_accessor.GetLifetimeScope(configurationAction));
 }