Läs på engelska

Dela via


BaseConnectionContext Class

Definition

Represents the context for a connection.

C#
public abstract class BaseConnectionContext : IAsyncDisposable
Inheritance
BaseConnectionContext
Derived
Implements

Constructors

Properties

ConnectionClosed

Triggered when the client connection is closed.

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.

Items

Gets or sets a key/value collection that can be used to share data within the scope of this connection.

LocalEndPoint

Gets or sets the local endpoint for this connection.

RemoteEndPoint

Gets or sets the remote endpoint for this connection.

Methods

Abort()

Aborts the underlying connection.

Abort(ConnectionAbortedException)

Aborts the underlying connection.

DisposeAsync()

Releases resources for the underlying connection.

Applies to

Produkt Versioner
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0