OwinFeatureCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
IHttpAuthenticationFeature IFeatureCollection IHttpConnectionFeature IHttpRequestFeature IHttpRequestIdentifierFeature IHttpRequestLifetimeFeature IHttpResponseFeature IHttpSendFileFeature IHttpWebSocketFeature ITlsConnectionFeature IOwinEnvironmentFeature IEnumerable<KeyValuePair<Type,Object>> IEnumerable IHttpResponseBodyFeature
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
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. |