OwinFeatureCollection Class¶
- Namespace
Microsoft.AspNetCore.Owin- Assemblies
- Microsoft.AspNetCore.Owin
Syntax¶
public class OwinFeatureCollection : IFeatureCollection, IEnumerable<KeyValuePair<Type, object>>, IEnumerable, IHttpRequestFeature, IHttpResponseFeature, IHttpConnectionFeature, IHttpSendFileFeature, ITlsConnectionFeature, IHttpRequestIdentifierFeature, IHttpRequestLifetimeFeature, IHttpAuthenticationFeature, IHttpWebSocketFeature, IOwinEnvironmentFeature
-
class
Microsoft.AspNetCore.Owin.OwinFeatureCollection
Constructors¶
-
OwinFeatureCollection(System.Collections.Generic.IDictionary<System.String, System.Object>)¶ public OwinFeatureCollection(IDictionary<string, object> environment)
-
Methods¶
-
Dispose()¶ public void Dispose()
-
Get(System.Type)¶ Return type: System.Object public object Get(Type key)
-
GetEnumerator()¶ Return type: System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Type>> public IEnumerator<KeyValuePair<Type, object>> GetEnumerator()
-
Get<TFeature>()¶ Return type: TFeature public TFeature Get<TFeature>()
-
Abort()¶ void IHttpRequestLifetimeFeature.Abort()
-
OnCompleted(System.Func<System.Object, System.Threading.Tasks.Task>, System.Object)¶ void IHttpResponseFeature.OnCompleted(Func<object, Task> callback, object state)
-
OnStarting(System.Func<System.Object, System.Threading.Tasks.Task>, System.Object)¶ void IHttpResponseFeature.OnStarting(Func<object, Task> callback, object state)
-
SendFileAsync(System.String, System.Int64, System.Nullable<System.Int64>, System.Threading.CancellationToken)¶ Return type: System.Threading.Tasks.Task Task IHttpSendFileFeature.SendFileAsync(string path, long offset, long ? length, CancellationToken cancellation)
-
AcceptAsync(Microsoft.AspNetCore.Http.WebSocketAcceptContext)¶ Return type: System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> Task<WebSocket> IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext context)
-
GetClientCertificateAsync(System.Threading.CancellationToken)¶ Return type: System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2> Task<X509Certificate2> ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken cancellationToken)
-
Set(System.Type, System.Object)¶ public void Set(Type key, object value)
-
Set<TFeature>(TFeature)¶ public void Set<TFeature>(TFeature instance)
-
GetEnumerator() Return type: System.Collections.IEnumerator IEnumerator IEnumerable.GetEnumerator()
-
Properties¶
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Environment¶ Return type: System.Collections.Generic.IDictionary<System.String> public IDictionary<string, object> Environment { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.IsReadOnly¶ Return type: System.Boolean public bool IsReadOnly { get; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Item[System.Type]¶ Return type: System.Object public object this[Type key] { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Handler¶ Return type: Microsoft.AspNetCore.Http.Features.Authentication.IAuthenticationHandler IAuthenticationHandler IHttpAuthenticationFeature.Handler { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.User¶ Return type: System.Security.Claims.ClaimsPrincipal ClaimsPrincipal IHttpAuthenticationFeature.User { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.ConnectionId¶ Return type: System.String string IHttpConnectionFeature.ConnectionId { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.LocalIpAddress¶ Return type: System.Net.IPAddress IPAddress IHttpConnectionFeature.LocalIpAddress { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.LocalPort¶ Return type: System.Int32 int IHttpConnectionFeature.LocalPort { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.RemoteIpAddress¶ Return type: System.Net.IPAddress IPAddress IHttpConnectionFeature.RemoteIpAddress { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.RemotePort¶ Return type: System.Int32 int IHttpConnectionFeature.RemotePort { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Body¶ Return type: System.IO.Stream Stream IHttpRequestFeature.Body { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Headers¶ Return type: Microsoft.AspNetCore.Http.IHeaderDictionary IHeaderDictionary IHttpRequestFeature.Headers { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Method¶ Return type: System.String string IHttpRequestFeature.Method { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Path¶ Return type: System.String string IHttpRequestFeature.Path { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.PathBase¶ Return type: System.String string IHttpRequestFeature.PathBase { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Protocol¶ Return type: System.String string IHttpRequestFeature.Protocol { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.QueryString¶ Return type: System.String string IHttpRequestFeature.QueryString { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.RawTarget¶ Return type: System.String string IHttpRequestFeature.RawTarget { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Scheme¶ Return type: System.String string IHttpRequestFeature.Scheme { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.TraceIdentifier¶ Return type: System.String string IHttpRequestIdentifierFeature.TraceIdentifier { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.RequestAborted¶ Return type: System.Threading.CancellationToken CancellationToken IHttpRequestLifetimeFeature.RequestAborted { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Body Return type: System.IO.Stream Stream IHttpResponseFeature.Body { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.HasStarted¶ Return type: System.Boolean bool IHttpResponseFeature.HasStarted { get; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Headers Return type: Microsoft.AspNetCore.Http.IHeaderDictionary IHeaderDictionary IHttpResponseFeature.Headers { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.ReasonPhrase¶ Return type: System.String string IHttpResponseFeature.ReasonPhrase { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.StatusCode¶ Return type: System.Int32 int IHttpResponseFeature.StatusCode { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.IsWebSocketRequest¶ Return type: System.Boolean bool IHttpWebSocketFeature.IsWebSocketRequest { get; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.ClientCertificate¶ Return type: System.Security.Cryptography.X509Certificates.X509Certificate2 X509Certificate2 ITlsConnectionFeature.ClientCertificate { get; set; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.Revision¶ Return type: System.Int32 public int Revision { get; }
-
Microsoft.AspNetCore.Owin.OwinFeatureCollection.SupportsWebSockets¶ Gets or sets if the underlying server supports WebSockets. This is enabled by default. The value should be consistent across requests.
Return type: System.Boolean public bool SupportsWebSockets { get; set; }
-