• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class HttpContextDependencyInjectionExtensions

Dependency injection extensions for HttpContext.

Inheritance
System.Object
HttpContextDependencyInjectionExtensions
Namespace: DotNetNuke.Common.Extensions
Assembly: DotNetNuke.dll
Syntax
public static class HttpContextDependencyInjectionExtensions : object

Methods

| Improve this Doc View Source

ClearScope(HttpContext)

Clears the service scope for the http context.

Declaration
public static void ClearScope(this HttpContext httpContext)
Parameters
Type Name Description
HttpContext httpContext

The http context on which to clear the service scope.

| Improve this Doc View Source

ClearScope(HttpContextBase)

Clears the service scope for the http context.

Declaration
public static void ClearScope(this HttpContextBase httpContext)
Parameters
Type Name Description
HttpContextBase httpContext

The http context on which to clear the service scope.

| Improve this Doc View Source

GetScope(HttpContext)

Gets the http context service scope.

Declaration
public static IServiceScope GetScope(this HttpContext httpContext)
Parameters
Type Name Description
HttpContext httpContext

The http context from which to get the scope from.

Returns
Type Description
IServiceScope

A service scope.

| Improve this Doc View Source

GetScope(HttpContextBase)

Gets the http context base service scope.

Declaration
public static IServiceScope GetScope(this HttpContextBase httpContext)
Parameters
Type Name Description
HttpContextBase httpContext

The http context base from which to get the scope from.

Returns
Type Description
IServiceScope

A service scope.

| Improve this Doc View Source

SetScope(HttpContext, IServiceScope)

Sets the service scope for the http context.

Declaration
public static void SetScope(this HttpContext httpContext, IServiceScope scope)
Parameters
Type Name Description
HttpContext httpContext

The http context.

IServiceScope scope

The service scope.

| Improve this Doc View Source

SetScope(HttpContextBase, IServiceScope)

Sets the service scope for the http context base.

Declaration
public static void SetScope(this HttpContextBase httpContext, IServiceScope scope)
Parameters
Type Name Description
HttpContextBase httpContext

The http context base.

IServiceScope scope

The service scope.

  • View Source
Back to top by the community, for the community... #DNNCMS