OwinContext Class

Provides strongly typed accessors and wraps OWIN environment dictionary.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.OwinContext

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

Syntax

'Declaration
Public Class OwinContext _
    Implements IOwinContext
'Usage
Dim instance As OwinContext
public class OwinContext : IOwinContext
public ref class OwinContext : IOwinContext
type OwinContext =  
    class 
        interface IOwinContext 
    end
public class OwinContext implements IOwinContext

The OwinContext type exposes the following members.

Constructors

  Name Description
Public method OwinContext() Initializes a new instance of the OwinContext class.
Public method OwinContext(IDictionary<String, Object>) Initializes a new instance of the OwinContext class.

Top

Properties

  Name Description
Public property Authentication Gets the Authentication middleware functionality available on the current request.
Public property Environment Gets the wrapped OWIN environment.
Public property Request Gets a wrapper exposing request specific properties.
Public property Response Gets a wrapper exposing response specific properties.
Public property TraceOutput Gets or sets the host.TraceOutput environment value.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Get<T> Gets a value from the OWIN environment, or returns default(T) if not present.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Set<T> Sets the given key and value in the OWIN environment.
Public method ToString (Inherited from Object.)

Top

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

Reference

Microsoft.Owin Namespace