Sdílet prostřednictvím


OwinFeatureCollection Třída

Definice

Kolekce funkcí 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
Dědičnost
OwinFeatureCollection
Implementuje

Konstruktory

OwinFeatureCollection(IDictionary<String,Object>)

Inicializuje novou instanci OwinFeatureCollection.

Vlastnosti

Environment

Získá nebo nastaví hodnoty prostředí OWIN.

IsReadOnly

Označuje, jestli je možné kolekci upravit.

Item[Type]

Získá nebo nastaví danou funkci. Nastavení hodnoty null odebere funkci.

Revision

Zvýší se pro každou změnu a dá se použít k ověření výsledků uložených v mezipaměti.

SupportsWebSockets

Získá nebo nastaví, pokud základní server podporuje WebSockets. Tato možnost je ve výchozím nastavení povolená. Hodnota by měla být v rámci požadavků konzistentní.

Metody

Dispose()

Kolekce funkcí OWIN

Get(Type)

Kolekce funkcí OWIN

Get<TFeature>()

Načte požadovanou funkci z kolekce.

GetEnumerator()

Kolekce funkcí OWIN

Set(Type, Object)

Kolekce funkcí OWIN

Set<TFeature>(TFeature)

Nastaví danou funkci v kolekci.

Explicitní implementace rozhraní

IEnumerable.GetEnumerator()

Kolekce funkcí OWIN

IHttpAuthenticationFeature.Handler

Kolekce funkcí OWIN

IHttpAuthenticationFeature.User

Kolekce funkcí OWIN

IHttpConnectionFeature.ConnectionId

Kolekce funkcí OWIN

IHttpConnectionFeature.LocalIpAddress

Kolekce funkcí OWIN

IHttpConnectionFeature.LocalPort

Kolekce funkcí OWIN

IHttpConnectionFeature.RemoteIpAddress

Kolekce funkcí OWIN

IHttpConnectionFeature.RemotePort

Kolekce funkcí OWIN

IHttpRequestFeature.Body

Kolekce funkcí OWIN

IHttpRequestFeature.Headers

Kolekce funkcí OWIN

IHttpRequestFeature.Method

Kolekce funkcí OWIN

IHttpRequestFeature.Path

Kolekce funkcí OWIN

IHttpRequestFeature.PathBase

Kolekce funkcí OWIN

IHttpRequestFeature.Protocol

Kolekce funkcí OWIN

IHttpRequestFeature.QueryString

Kolekce funkcí OWIN

IHttpRequestFeature.RawTarget

Kolekce funkcí OWIN

IHttpRequestFeature.Scheme

Kolekce funkcí OWIN

IHttpRequestIdentifierFeature.TraceIdentifier

Kolekce funkcí OWIN

IHttpRequestLifetimeFeature.Abort()

Kolekce funkcí OWIN

IHttpRequestLifetimeFeature.RequestAborted

Kolekce funkcí OWIN

IHttpResponseBodyFeature.CompleteAsync()

Kolekce funkcí OWIN

IHttpResponseBodyFeature.DisableBuffering()

Kolekce funkcí OWIN

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

Kolekce funkcí OWIN

IHttpResponseBodyFeature.StartAsync(CancellationToken)

Kolekce funkcí OWIN

IHttpResponseBodyFeature.Stream

Kolekce funkcí OWIN

IHttpResponseBodyFeature.Writer

Kolekce funkcí OWIN

IHttpResponseFeature.Body

Kolekce funkcí OWIN

IHttpResponseFeature.HasStarted

Kolekce funkcí OWIN

IHttpResponseFeature.Headers

Kolekce funkcí OWIN

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

Kolekce funkcí OWIN

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

Kolekce funkcí OWIN

IHttpResponseFeature.ReasonPhrase

Kolekce funkcí OWIN

IHttpResponseFeature.StatusCode

Kolekce funkcí OWIN

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

Kolekce funkcí OWIN

IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext)

Kolekce funkcí OWIN

IHttpWebSocketFeature.IsWebSocketRequest

Kolekce funkcí OWIN

ITlsConnectionFeature.ClientCertificate

Kolekce funkcí OWIN

ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken)

Kolekce funkcí OWIN

Metody rozšíření

GetRequiredFeature(IFeatureCollection, Type)

Načte požadovanou funkci z kolekce. Vyvolá InvalidOperationException, pokud tato funkce není k dispozici.

GetRequiredFeature<TFeature>(IFeatureCollection)

Načte požadovanou funkci z kolekce. Vyvolá InvalidOperationException, pokud tato funkce není k dispozici.

Platí pro