OwinContext Class

 

This wraps OWIN environment dictionary and provides strongly typed accessors.

Namespace:   Microsoft.Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Owin.OwinContext

Syntax

public class OwinContext : IOwinContext
public ref class OwinContext : IOwinContext
type OwinContext = 
    class
        interface IOwinContext
    end
Public Class OwinContext
    Implements IOwinContext

Constructors

Name Description
System_CAPS_pubmethod OwinContext()

Create a new context with only request and response header collections.

System_CAPS_pubmethod OwinContext(IDictionary<String, Object>)

Create a new wrapper.

Properties

Name Description
System_CAPS_pubproperty Authentication

Gets the Authentication middleware functionality available on the current request.

System_CAPS_pubproperty Environment

Gets the OWIN environment.

System_CAPS_pubproperty Request

Gets a wrapper exposing request specific properties.

System_CAPS_pubproperty Response

Gets a wrapper exposing response specific properties.

System_CAPS_pubproperty TraceOutput

Gets or sets the host.TraceOutput environment value.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod Get<T>(String)

Gets a value from the OWIN environment, or returns default(T) if not present.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Set<T>(String, T)

Sets the given key and value in the OWIN environment.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin Namespace

Return to top