Dela via


Microsoft.AspNetCore.Connections.Features Namespace

Contains interfaces for features that describe or manipulate a connection.

Interfaces

IConnectionCompleteFeature

Represents the completion action for a connection.

IConnectionEndPointFeature

A feature that represents a connection endpoints.

IConnectionHeartbeatFeature

A feature that represents the connection heartbeat.

IConnectionIdFeature

The unique identifier for a given connection.

IConnectionInherentKeepAliveFeature

Indicates if the connection transport has an "inherent keep-alive", which means that the transport will automatically inform the client that it is still present.

IConnectionItemsFeature

A bag of items associated with a given connection.

IConnectionLifetimeFeature

Represents the lifetime of the connection.

IConnectionLifetimeNotificationFeature

Enables graceful termination of the connection.

IConnectionMetricsTagsFeature

Provides access to tags added to the metrics connection counter. This feature isn't set if the counter isn't enabled.

IConnectionNamedPipeFeature

Provides access to the connection's underlying NamedPipeServerStream.

IConnectionSocketFeature

Provides access to the connection's underlying Socket.

IConnectionTransportFeature

The transport for the connection.

IConnectionUserFeature

The user associated with the connection.

IMemoryPoolFeature

The MemoryPool<T> used by the connection.

IPersistentStateFeature

Provides access to a key/value collection that can be used to persist state between connections and requests. Whether a transport supports persisting state depends on the implementation. The transport must support pooling and reusing connection instances for state to be persisted.

Because values added to persistent state can live in memory until a connection is no longer pooled, use caution when adding items to this collection to avoid excessive memory use.

IProtocolErrorCodeFeature

The error code for the protocol being used.

IStreamAbortFeature

Supports aborting individual sides of a connection stream.

IStreamClosedFeature

Represents the close action for a stream.

IStreamDirectionFeature

The direction of a connection stream

IStreamIdFeature

Represents the identifier for the stream.

ITlsHandshakeFeature

Represents the details about the TLS handshake.

ITransferFormatFeature

Gets the transfer format of the protocol.