Beispiel #1
0
 public ILifetimeScope GetScope(Context.CreationContext context)
 {
     if (HttpContext.Current != null && PerWebRequestLifestyleModuleUtils.IsInitialized)
     {
         return(webRequestScopeAccessor.GetScope(context));
     }
     return(secondaryScopeAccessor.GetScope(context));
 }
Beispiel #2
0
 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());
 }
Beispiel #5
0
        public ILifetimeScope GetScope(Context.CreationContext context)
        {
            var session = GetSession();

            return(GetOrCreateSessionScope(session));
        }