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.​MultiplexedConnectionContext

Assembly: Microsoft.AspNetCore.Connections.Abstractions

Inheritance: object → BaseConnectionContext → MultiplexedConnectionContext

Implemented Interfaces

Encapsulates all information about a multiplexed connection.

Properties

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

AcceptAsync​(System.​Threading.​CancellationToken cancellationToken = null)
Asynchronously accept an incoming stream on the connection.
ConnectAsync​(Http.​Features.​IFeatureCollection features = null, System.​Threading.​CancellationToken cancellationToken = null)
Creates an outbound connection
public void
Abort​()
Inherited from BaseConnectionContext
Aborts the underlying connection.
public void
Abort​(ConnectionAbortedException abortReason)
Inherited from BaseConnectionContext
Aborts the underlying connection.
abortReason A <see cref="T:Microsoft.AspNetCore.Connections.ConnectionAbortedException" /> describing the reason the connection is being terminated.
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