Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Connections.​ConnectionContext

Assembly: Microsoft.AspNetCore.Connections.Abstractions

Inheritance: object → BaseConnectionContext → ConnectionContext

Implemented Interfaces

Encapsulates all information about an individual connection.

Properties

Gets or sets the <see cref="T:System.IO.Pipelines.IDuplexPipe" /> that can be used to read or write data on this connection.
public string
ConnectionId
Gets or sets a unique identifier to represent this connection in trace logs.
Gets the collection of features provided by the server and middleware available on this connection.
Items
Gets or sets a key/value collection that can be used to share data within the scope of this connection.
Triggered when the client connection is closed.
LocalEndPoint
Gets or sets the local endpoint for this connection.
RemoteEndPoint
Gets or sets the remote endpoint for this connection.

Methods

public void
Abort​(ConnectionAbortedException abortReason)
Aborts the underlying connection.
abortReason A <see cref="T:Microsoft.AspNetCore.Connections.ConnectionAbortedException" /> describing the reason the connection is being terminated.
public void
Abort​()
Aborts the underlying connection.
DisposeAsync​()
Inherited from BaseConnectionContext
Releases resources for the underlying connection.
Returns A <see cref="T:System.Threading.Tasks.ValueTask" /> that completes when resources have been released.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object