HttpContextBaseExtensions.GetOwinContext Method

 

Gets the OWIN context.

Namespace:   System.Web
Assembly:  Microsoft.Owin.Host.SystemWeb (in Microsoft.Owin.Host.SystemWeb.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static GetOwinContext(HttpContextBase)

Gets the IOwinContext for the current request.

System_CAPS_pubmethodSystem_CAPS_static GetOwinContext(HttpRequestBase)

Gets the IOwinContext for the current request.

See Also

HttpContextBaseExtensions Class
System.Web Namespace

Return to top

HttpContextBaseExtensions.GetOwinContext Method (HttpContextBase)

Gets the IOwinContext for the current request.

Syntax

public static IOwinContext GetOwinContext(
    this HttpContextBase context
)
public:
[ExtensionAttribute]
static IOwinContext^ GetOwinContext(
    HttpContextBase^ context
)
static member GetOwinContext : 
        context:HttpContextBase -> IOwinContext
<ExtensionAttribute>
Public Shared Function GetOwinContext (
    context As HttpContextBase
) As IOwinContext

Parameters

Return Value

Type: Microsoft.Owin.IOwinContext

Returns IOwinContext.

Return to top

HttpContextBaseExtensions.GetOwinContext Method (HttpRequestBase)

Gets the IOwinContext for the current request.

Syntax

public static IOwinContext GetOwinContext(
    this HttpRequestBase request
)
public:
[ExtensionAttribute]
static IOwinContext^ GetOwinContext(
    HttpRequestBase^ request
)
static member GetOwinContext : 
        request:HttpRequestBase -> IOwinContext
<ExtensionAttribute>
Public Shared Function GetOwinContext (
    request As HttpRequestBase
) As IOwinContext

Parameters

Return Value

Type: Microsoft.Owin.IOwinContext

Returns IOwinContext.

Return to top