Share via


OwinFeatureCollection Class

Definition

OWIN feature collection.

public ref class OwinFeatureCollection : Microsoft::AspNetCore::Http::Features::Authentication::IHttpAuthenticationFeature, Microsoft::AspNetCore::Http::Features::IFeatureCollection, Microsoft::AspNetCore::Http::Features::IHttpConnectionFeature, Microsoft::AspNetCore::Http::Features::IHttpRequestFeature, Microsoft::AspNetCore::Http::Features::IHttpRequestIdentifierFeature, Microsoft::AspNetCore::Http::Features::IHttpRequestLifetimeFeature, Microsoft::AspNetCore::Http::Features::IHttpResponseFeature, Microsoft::AspNetCore::Http::Features::IHttpSendFileFeature, Microsoft::AspNetCore::Http::Features::IHttpWebSocketFeature, Microsoft::AspNetCore::Http::Features::ITlsConnectionFeature, Microsoft::AspNetCore::Owin::IOwinEnvironmentFeature, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Type ^, System::Object ^>>
public ref class OwinFeatureCollection : Microsoft::AspNetCore::Http::Features::Authentication::IHttpAuthenticationFeature, Microsoft::AspNetCore::Http::Features::IFeatureCollection, Microsoft::AspNetCore::Http::Features::IHttpConnectionFeature, Microsoft::AspNetCore::Http::Features::IHttpRequestFeature, Microsoft::AspNetCore::Http::Features::IHttpRequestIdentifierFeature, Microsoft::AspNetCore::Http::Features::IHttpRequestLifetimeFeature, Microsoft::AspNetCore::Http::Features::IHttpResponseBodyFeature, Microsoft::AspNetCore::Http::Features::IHttpResponseFeature, Microsoft::AspNetCore::Http::Features::IHttpWebSocketFeature, Microsoft::AspNetCore::Http::Features::ITlsConnectionFeature, Microsoft::AspNetCore::Owin::IOwinEnvironmentFeature, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Type ^, System::Object ^>>
public class OwinFeatureCollection : Microsoft.AspNetCore.Http.Features.Authentication.IHttpAuthenticationFeature, Microsoft.AspNetCore.Http.Features.IFeatureCollection, Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestIdentifierFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature, Microsoft.AspNetCore.Http.Features.IHttpResponseFeature, Microsoft.AspNetCore.Http.Features.IHttpSendFileFeature, Microsoft.AspNetCore.Http.Features.IHttpWebSocketFeature, Microsoft.AspNetCore.Http.Features.ITlsConnectionFeature, Microsoft.AspNetCore.Owin.IOwinEnvironmentFeature, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,object>>
public class OwinFeatureCollection : Microsoft.AspNetCore.Http.Features.Authentication.IHttpAuthenticationFeature, Microsoft.AspNetCore.Http.Features.IFeatureCollection, Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestIdentifierFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature, Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature, Microsoft.AspNetCore.Http.Features.IHttpResponseFeature, Microsoft.AspNetCore.Http.Features.IHttpWebSocketFeature, Microsoft.AspNetCore.Http.Features.ITlsConnectionFeature, Microsoft.AspNetCore.Owin.IOwinEnvironmentFeature, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,object>>
type OwinFeatureCollection = class
    interface IFeatureCollection
    interface seq<KeyValuePair<Type, obj>>
    interface IEnumerable
    interface IHttpRequestFeature
    interface IHttpResponseFeature
    interface IHttpConnectionFeature
    interface IHttpSendFileFeature
    interface ITlsConnectionFeature
    interface IHttpRequestIdentifierFeature
    interface IHttpRequestLifetimeFeature
    interface IHttpAuthenticationFeature
    interface IHttpWebSocketFeature
    interface IOwinEnvironmentFeature
type OwinFeatureCollection = class
    interface IFeatureCollection
    interface seq<KeyValuePair<Type, obj>>
    interface IEnumerable
    interface IHttpRequestFeature
    interface IHttpResponseFeature
    interface IHttpResponseBodyFeature
    interface IHttpConnectionFeature
    interface ITlsConnectionFeature
    interface IHttpRequestIdentifierFeature
    interface IHttpRequestLifetimeFeature
    interface IHttpAuthenticationFeature
    interface IHttpWebSocketFeature
    interface IOwinEnvironmentFeature
Public Class OwinFeatureCollection
Implements IEnumerable(Of KeyValuePair(Of Type, Object)), IFeatureCollection, IHttpAuthenticationFeature, IHttpConnectionFeature, IHttpRequestFeature, IHttpRequestIdentifierFeature, IHttpRequestLifetimeFeature, IHttpResponseFeature, IHttpSendFileFeature, IHttpWebSocketFeature, IOwinEnvironmentFeature, ITlsConnectionFeature
Public Class OwinFeatureCollection
Implements IEnumerable(Of KeyValuePair(Of Type, Object)), IFeatureCollection, IHttpAuthenticationFeature, IHttpConnectionFeature, IHttpRequestFeature, IHttpRequestIdentifierFeature, IHttpRequestLifetimeFeature, IHttpResponseBodyFeature, IHttpResponseFeature, IHttpWebSocketFeature, IOwinEnvironmentFeature, ITlsConnectionFeature
Inheritance
OwinFeatureCollection
Implements

Constructors

OwinFeatureCollection(IDictionary<String,Object>)

Initializes a new instance of OwinFeatureCollection.

Properties

Environment

Gets or sets OWIN environment values.

IsReadOnly

Indicates if the collection can be modified.

Item[Type]

Gets or sets a given feature. Setting a null value removes the feature.

Revision

Incremented for each modification and can be used to verify cached results.

SupportsWebSockets

Gets or sets if the underlying server supports WebSockets. This is enabled by default. The value should be consistent across requests.

Methods

Dispose() System.Object.Dispose
Get(Type) System.Object.Get(System.Type)
Get<TFeature>()

Retrieves the requested feature from the collection.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Set(Type, Object) System.Object.Set(System.Type,System.Object)
Set<TFeature>(TFeature)

Sets the given feature in the collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IHttpAuthenticationFeature.Handler
IHttpAuthenticationFeature.User
IHttpConnectionFeature.ConnectionId
IHttpConnectionFeature.LocalIpAddress
IHttpConnectionFeature.LocalPort
IHttpConnectionFeature.RemoteIpAddress
IHttpConnectionFeature.RemotePort
IHttpRequestFeature.Body
IHttpRequestFeature.Headers
IHttpRequestFeature.Method
IHttpRequestFeature.Path
IHttpRequestFeature.PathBase
IHttpRequestFeature.Protocol
IHttpRequestFeature.QueryString
IHttpRequestFeature.RawTarget
IHttpRequestFeature.Scheme
IHttpRequestIdentifierFeature.TraceIdentifier
IHttpRequestLifetimeFeature.Abort()
IHttpRequestLifetimeFeature.RequestAborted
IHttpResponseBodyFeature.CompleteAsync()
IHttpResponseBodyFeature.DisableBuffering()
IHttpResponseBodyFeature.SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)
IHttpResponseBodyFeature.StartAsync(CancellationToken)
IHttpResponseBodyFeature.Stream
IHttpResponseBodyFeature.Writer
IHttpResponseFeature.Body
IHttpResponseFeature.HasStarted
IHttpResponseFeature.Headers
IHttpResponseFeature.OnCompleted(Func<Object,Task>, Object)
IHttpResponseFeature.OnStarting(Func<Object,Task>, Object)
IHttpResponseFeature.ReasonPhrase
IHttpResponseFeature.StatusCode
IHttpSendFileFeature.SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)
IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext)
IHttpWebSocketFeature.IsWebSocketRequest
ITlsConnectionFeature.ClientCertificate
ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken)

Extension Methods

GetRequiredFeature(IFeatureCollection, Type)

Retrieves the requested feature from the collection. Throws an InvalidOperationException if the feature is not present.

GetRequiredFeature<TFeature>(IFeatureCollection)

Retrieves the requested feature from the collection. Throws an InvalidOperationException if the feature is not present.

Applies to