public ILifetimeScope GetScope(Context.CreationContext context) { if (HttpContext.Current != null && PerWebRequestLifestyleModuleUtils.IsInitialized) { return(webRequestScopeAccessor.GetScope(context)); } return(secondaryScopeAccessor.GetScope(context)); }
public ILifetimeScope GetScope(Context.CreationContext context) { return(accessors.Select(a => a.GetScope(context)).FirstOrDefault(s => s != null)); }
public ILifetimeScope GetScope(Context.CreationContext context) { return(GetHttpModule().GetScope()); }
public ILifetimeScope GetScope(Context.CreationContext context) { return(new DefaultLifetimeScope()); }
public ILifetimeScope GetScope(Context.CreationContext context) { var session = GetSession(); return(GetOrCreateSessionScope(session)); }