internal static ILifetimeScope GetScope()
{
EnsureInitialized();
var context = HttpContext.Current;
if (context == null)
{
throw new InvalidOperationException(
"HttpContext.Current is null. PerWebRequestLifestyle can only be used in ASP.Net");
}
return GetScope(context, createIfNotPresent: true);
}