Bagikan melalui


OwinFeatureCollection Kelas

Definisi

Koleksi fitur 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
Warisan
OwinFeatureCollection
Penerapan

Konstruktor

OwinFeatureCollection(IDictionary<String,Object>)

Menginisialisasi instans baru OwinFeatureCollection.

Properti

Environment

Mendapatkan atau mengatur nilai lingkungan OWIN.

IsReadOnly

Menunjukkan apakah koleksi dapat dimodifikasi.

Item[Type]

Mendapatkan atau mengatur fitur tertentu. Mengatur nilai null akan menghapus fitur.

Revision

Bertahap untuk setiap modifikasi dan dapat digunakan untuk memverifikasi hasil cache.

SupportsWebSockets

Mendapatkan atau mengatur jika server yang mendasar mendukung WebSocket. Ini diaktifkan secara default. Nilai harus konsisten di seluruh permintaan.

Metode

Dispose()

Koleksi fitur OWIN.

Get(Type)

Koleksi fitur OWIN.

Get<TFeature>()

Mengambil fitur yang diminta dari koleksi.

GetEnumerator()

Koleksi fitur OWIN.

Set(Type, Object)

Koleksi fitur OWIN.

Set<TFeature>(TFeature)

Mengatur fitur yang diberikan dalam koleksi.

Implementasi Antarmuka Eksplisit

IEnumerable.GetEnumerator()

Koleksi fitur OWIN.

IHttpAuthenticationFeature.Handler

Koleksi fitur OWIN.

IHttpAuthenticationFeature.User

Koleksi fitur OWIN.

IHttpConnectionFeature.ConnectionId

Koleksi fitur OWIN.

IHttpConnectionFeature.LocalIpAddress

Koleksi fitur OWIN.

IHttpConnectionFeature.LocalPort

Koleksi fitur OWIN.

IHttpConnectionFeature.RemoteIpAddress

Koleksi fitur OWIN.

IHttpConnectionFeature.RemotePort

Koleksi fitur OWIN.

IHttpRequestFeature.Body

Koleksi fitur OWIN.

IHttpRequestFeature.Headers

Koleksi fitur OWIN.

IHttpRequestFeature.Method

Koleksi fitur OWIN.

IHttpRequestFeature.Path

Koleksi fitur OWIN.

IHttpRequestFeature.PathBase

Koleksi fitur OWIN.

IHttpRequestFeature.Protocol

Koleksi fitur OWIN.

IHttpRequestFeature.QueryString

Koleksi fitur OWIN.

IHttpRequestFeature.RawTarget

Koleksi fitur OWIN.

IHttpRequestFeature.Scheme

Koleksi fitur OWIN.

IHttpRequestIdentifierFeature.TraceIdentifier

Koleksi fitur OWIN.

IHttpRequestLifetimeFeature.Abort()

Koleksi fitur OWIN.

IHttpRequestLifetimeFeature.RequestAborted

Koleksi fitur OWIN.

IHttpResponseBodyFeature.CompleteAsync()

Koleksi fitur OWIN.

IHttpResponseBodyFeature.DisableBuffering()

Koleksi fitur OWIN.

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

Koleksi fitur OWIN.

IHttpResponseBodyFeature.StartAsync(CancellationToken)

Koleksi fitur OWIN.

IHttpResponseBodyFeature.Stream

Koleksi fitur OWIN.

IHttpResponseBodyFeature.Writer

Koleksi fitur OWIN.

IHttpResponseFeature.Body

Koleksi fitur OWIN.

IHttpResponseFeature.HasStarted

Koleksi fitur OWIN.

IHttpResponseFeature.Headers

Koleksi fitur OWIN.

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

Koleksi fitur OWIN.

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

Koleksi fitur OWIN.

IHttpResponseFeature.ReasonPhrase

Koleksi fitur OWIN.

IHttpResponseFeature.StatusCode

Koleksi fitur OWIN.

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

Koleksi fitur OWIN.

IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext)

Koleksi fitur OWIN.

IHttpWebSocketFeature.IsWebSocketRequest

Koleksi fitur OWIN.

ITlsConnectionFeature.ClientCertificate

Koleksi fitur OWIN.

ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken)

Koleksi fitur OWIN.

Metode Ekstensi

GetRequiredFeature(IFeatureCollection, Type)

Mengambil fitur yang diminta dari koleksi. Melemparkan InvalidOperationException jika fitur tidak ada.

GetRequiredFeature<TFeature>(IFeatureCollection)

Mengambil fitur yang diminta dari koleksi. Melemparkan InvalidOperationException jika fitur tidak ada.

Berlaku untuk