static private YieldScope ( ) : ILifetimeScope | ||
return | ILifetimeScope |
internal static ILifetimeScope YieldScope()
{
var context = HttpContext.Current;
if (context == null)
{
return null;
}
var scope = GetScope(context, createIfNotPresent: true);
if (scope != null)
{
context.Items.Remove(key);
}
return scope;
}
public void Dispose() { var scope = PerWebRequestLifestyleModule.YieldScope(); if (scope != null) { scope.Dispose(); } }