OwinFeatureCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
OWIN 功能集合。
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
- 继承
-
OwinFeatureCollection
- 实现
-
IHttpAuthenticationFeature IFeatureCollection IHttpConnectionFeature IHttpRequestFeature IHttpRequestIdentifierFeature IHttpRequestLifetimeFeature IHttpResponseFeature IHttpSendFileFeature IHttpWebSocketFeature ITlsConnectionFeature IOwinEnvironmentFeature IEnumerable<KeyValuePair<Type,Object>> IEnumerable IHttpResponseBodyFeature
构造函数
OwinFeatureCollection(IDictionary<String,Object>) |
初始化 OwinFeatureCollection的新实例。 |
属性
Environment |
获取或设置 OWIN 环境值。 |
IsReadOnly |
指示是否可以修改集合。 |
Item[Type] |
获取或设置给定的功能。 设置 null 值会删除该功能。 |
Revision |
针对每个修改递增,可用于验证缓存的结果。 |
SupportsWebSockets |
获取或设置基础服务器是否支持 WebSocket。 默认情况下启用此功能。 该值应在请求之间保持一致。 |
方法
Dispose() |
OWIN 功能集合。 |
Get(Type) |
OWIN 功能集合。 |
Get<TFeature>() |
从集合中检索请求的功能。 |
GetEnumerator() |
OWIN 功能集合。 |
Set(Type, Object) |
OWIN 功能集合。 |
Set<TFeature>(TFeature) |
设置集合中的给定功能。 |
显式接口实现
扩展方法
GetRequiredFeature(IFeatureCollection, Type) |
从集合中检索请求的功能。 如果功能不存在,则引发 InvalidOperationException。 |
GetRequiredFeature<TFeature>(IFeatureCollection) |
从集合中检索请求的功能。 如果功能不存在,则引发 InvalidOperationException。 |