mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Update HttpContextBaseExtensions.cs
This commit is contained in:
@@ -6,4 +6,10 @@ namespace Orchard.Mvc.Extensions {
|
||||
return httpContextBase == null || httpContextBase is MvcModule.HttpContextPlaceholder;
|
||||
}
|
||||
}
|
||||
|
||||
public static class HttpContextExtensions {
|
||||
public static bool IsBackgroundHttpContext(this HttpContext httpContext) {
|
||||
return HttpContextAccessor.IsBackgroundHttpContext(httpContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user