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
- System.​IAsyncDisposable Implemented by: BaseConnectionContext
Encapsulates all information about a multiplexed connection.
Properties
public
string
ConnectionId
Gets or sets a unique identifier to represent this connection in trace logs.
Features
Gets the collection of features provided by the server and middleware available on this connection.
public
System.​Collections.​Generic.​IDictionary<​object, object>
Items
Gets or sets a key/value collection that can be used to share data within the scope of this connection.
ConnectionClosed
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
System.​Threading.​Tasks.​ValueTask<​ConnectionContext>
AcceptAsync​(System.​Threading.​CancellationToken cancellationToken = null)
Asynchronously accept an incoming stream on the connection.
public
System.​Threading.​Tasks.​ValueTask<​ConnectionContext>
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
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object