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.​BaseConnectionContext
Assembly: Microsoft.AspNetCore.Connections.Abstractions
Inheritance: object → BaseConnectionContext
Implemented Interfaces
Represents the context for a 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
void
Abort​()
Aborts the underlying connection.
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.
DisposeAsync​()
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