OwinFeatureCollection 类

定义

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
实现

构造函数

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)

设置集合中的给定功能。

显式接口实现

IEnumerable.GetEnumerator()

OWIN 功能集合。

IHttpAuthenticationFeature.Handler

OWIN 功能集合。

IHttpAuthenticationFeature.User

OWIN 功能集合。

IHttpConnectionFeature.ConnectionId

OWIN 功能集合。

IHttpConnectionFeature.LocalIpAddress

OWIN 功能集合。

IHttpConnectionFeature.LocalPort

OWIN 功能集合。

IHttpConnectionFeature.RemoteIpAddress

OWIN 功能集合。

IHttpConnectionFeature.RemotePort

OWIN 功能集合。

IHttpRequestFeature.Body

OWIN 功能集合。

IHttpRequestFeature.Headers

OWIN 功能集合。

IHttpRequestFeature.Method

OWIN 功能集合。

IHttpRequestFeature.Path

OWIN 功能集合。

IHttpRequestFeature.PathBase

OWIN 功能集合。

IHttpRequestFeature.Protocol

OWIN 功能集合。

IHttpRequestFeature.QueryString

OWIN 功能集合。

IHttpRequestFeature.RawTarget

OWIN 功能集合。

IHttpRequestFeature.Scheme

OWIN 功能集合。

IHttpRequestIdentifierFeature.TraceIdentifier

OWIN 功能集合。

IHttpRequestLifetimeFeature.Abort()

OWIN 功能集合。

IHttpRequestLifetimeFeature.RequestAborted

OWIN 功能集合。

IHttpResponseBodyFeature.CompleteAsync()

OWIN 功能集合。

IHttpResponseBodyFeature.DisableBuffering()

OWIN 功能集合。

IHttpResponseBodyFeature.SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)

OWIN 功能集合。

IHttpResponseBodyFeature.StartAsync(CancellationToken)

OWIN 功能集合。

IHttpResponseBodyFeature.Stream

OWIN 功能集合。

IHttpResponseBodyFeature.Writer

OWIN 功能集合。

IHttpResponseFeature.Body

OWIN 功能集合。

IHttpResponseFeature.HasStarted

OWIN 功能集合。

IHttpResponseFeature.Headers

OWIN 功能集合。

IHttpResponseFeature.OnCompleted(Func<Object,Task>, Object)

OWIN 功能集合。

IHttpResponseFeature.OnStarting(Func<Object,Task>, Object)

OWIN 功能集合。

IHttpResponseFeature.ReasonPhrase

OWIN 功能集合。

IHttpResponseFeature.StatusCode

OWIN 功能集合。

IHttpSendFileFeature.SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)

OWIN 功能集合。

IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext)

OWIN 功能集合。

IHttpWebSocketFeature.IsWebSocketRequest

OWIN 功能集合。

ITlsConnectionFeature.ClientCertificate

OWIN 功能集合。

ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken)

OWIN 功能集合。

扩展方法

GetRequiredFeature(IFeatureCollection, Type)

从集合中检索请求的功能。 如果功能不存在,则引发 InvalidOperationException

GetRequiredFeature<TFeature>(IFeatureCollection)

从集合中检索请求的功能。 如果功能不存在,则引发 InvalidOperationException

适用于