DefaultConnectionContext Class  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The default implementation for the ConnectionContext.
public ref class DefaultConnectionContext : Microsoft::AspNetCore::Connections::ConnectionContext, IDisposable, Microsoft::AspNetCore::Connections::Features::IConnectionIdFeature, Microsoft::AspNetCore::Connections::Features::IConnectionItemsFeature, Microsoft::AspNetCore::Connections::Features::IConnectionLifetimeFeature, Microsoft::AspNetCore::Connections::Features::IConnectionTransportFeature, Microsoft::AspNetCore::Connections::Features::IConnectionUserFeature
	public ref class DefaultConnectionContext : Microsoft::AspNetCore::Connections::ConnectionContext, Microsoft::AspNetCore::Connections::Features::IConnectionEndPointFeature, Microsoft::AspNetCore::Connections::Features::IConnectionIdFeature, Microsoft::AspNetCore::Connections::Features::IConnectionItemsFeature, Microsoft::AspNetCore::Connections::Features::IConnectionLifetimeFeature, Microsoft::AspNetCore::Connections::Features::IConnectionTransportFeature, Microsoft::AspNetCore::Connections::Features::IConnectionUserFeature
	public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionEndPointFeature, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature
	public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, IDisposable, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature
	type DefaultConnectionContext = class
    inherit ConnectionContext
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
    interface IConnectionLifetimeFeature
    interface IConnectionEndPointFeature
	type DefaultConnectionContext = class
    inherit ConnectionContext
    interface IDisposable
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
    interface IConnectionLifetimeFeature
	type DefaultConnectionContext = class
    inherit ConnectionContext
    interface IConnectionEndPointFeature
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionLifetimeFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
	Public Class DefaultConnectionContext
Inherits ConnectionContext
Implements IConnectionEndPointFeature, IConnectionIdFeature, IConnectionItemsFeature, IConnectionLifetimeFeature, IConnectionTransportFeature, IConnectionUserFeature
	Public Class DefaultConnectionContext
Inherits ConnectionContext
Implements IConnectionIdFeature, IConnectionItemsFeature, IConnectionLifetimeFeature, IConnectionTransportFeature, IConnectionUserFeature, IDisposable
		- Inheritance
 
- Inheritance
 
- Implements
 
Constructors
| DefaultConnectionContext() | 
		 Creates the DefaultConnectionContext without Pipes to avoid upfront allocations. The caller is expected to set the Transport and Application pipes manually.  | 
        	
| DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe) | 
		 Creates the DefaultConnectionContext with the given   | 
        	
| DefaultConnectionContext(String) | 
		 Creates the DefaultConnectionContext without Pipes to avoid upfront allocations. The caller is expected to set the Transport and Application pipes manually.  | 
        	
Properties
| Application | |
| ConnectionClosed | 
		 Gets or sets the CancellationToken that is triggered when the connection is closed.  | 
        	
| ConnectionId | 
		 Gets or sets the connection identifier.  | 
        	
| Features | 
		 Gets the collection of features provided by the server and middleware available on this connection.  | 
        	
| Items | 
		 Gets or sets the items associated with the connection.  | 
        	
| LocalEndPoint | 
		 Gets or sets the local EndPoint.  | 
        	
| RemoteEndPoint | 
		 Gets or sets the remote EndPoint.  | 
        	
| Transport | 
		 Gets or sets the transport for the connection.  | 
        	
| User | 
		 Gets or sets the user associated with the connection.  | 
        	
Methods
| Abort() | |
| Abort() | 
		 Aborts the underlying connection. (Inherited from ConnectionContext) | 
        	
| Abort(ConnectionAbortedException) | 
		 Aborts the underlying connection.  | 
        	
| Dispose() | |
| DisposeAsync() | 
		 Releases resources for the underlying connection.  | 
        	
Extension Methods
| GetHttpContext(ConnectionContext) | 
		 Gets the HttpContext associated with the connection, if there is one.  |