ConnectionContext 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.
Encapsulates all information about an individual connection.
public ref class ConnectionContext abstract
public ref class ConnectionContext abstract : IAsyncDisposable
public ref class ConnectionContext abstract : Microsoft::AspNetCore::Connections::BaseConnectionContext, IAsyncDisposable
public abstract class ConnectionContext
public abstract class ConnectionContext : IAsyncDisposable
public abstract class ConnectionContext : Microsoft.AspNetCore.Connections.BaseConnectionContext, IAsyncDisposable
type ConnectionContext = class
type ConnectionContext = class
interface IAsyncDisposable
type ConnectionContext = class
inherit BaseConnectionContext
interface IAsyncDisposable
Public MustInherit Class ConnectionContext
Public MustInherit Class ConnectionContext
Implements IAsyncDisposable
Public MustInherit Class ConnectionContext
Inherits BaseConnectionContext
Implements IAsyncDisposable
- Inheritance
-
ConnectionContext
- Inheritance
- Derived
- Implements
Constructors
ConnectionContext() |
Properties
ConnectionClosed |
Triggered when the client connection is closed. |
ConnectionClosed |
Triggered when the client connection is closed. (Inherited from BaseConnectionContext) |
ConnectionId |
Gets or sets a unique identifier to represent this connection in trace logs. |
ConnectionId |
Gets or sets a unique identifier to represent this connection in trace logs. (Inherited from BaseConnectionContext) |
Features |
Gets the collection of features provided by the server and middleware available on this connection. |
Features |
Gets the collection of features provided by the server and middleware available on this connection. (Inherited from BaseConnectionContext) |
Items |
Gets or sets a key/value collection that can be used to share data within the scope of this connection. |
Items |
Gets or sets a key/value collection that can be used to share data within the scope of this connection. (Inherited from BaseConnectionContext) |
LocalEndPoint |
Gets or sets the local endpoint for this connection. |
LocalEndPoint |
Gets or sets the local endpoint for this connection. (Inherited from BaseConnectionContext) |
RemoteEndPoint |
Gets or sets the remote endpoint for this connection. |
RemoteEndPoint |
Gets or sets the remote endpoint for this connection. (Inherited from BaseConnectionContext) |
Transport |
Gets or sets the IDuplexPipe that can be used to read or write data on this connection. |
Methods
Abort() |
Aborts the underlying connection. |
Abort(ConnectionAbortedException) |
Aborts the underlying connection. |
DisposeAsync() |
Releases resources for the underlying connection. |
DisposeAsync() |
Releases resources for the underlying connection. (Inherited from BaseConnectionContext) |
Extension Methods
GetHttpContext(ConnectionContext) |
Gets the HttpContext associated with the connection, if there is one. |