Share via


BaseConnectionContext Class

Definition

Represents the context for a connection.

public ref class BaseConnectionContext abstract : IAsyncDisposable
public abstract class BaseConnectionContext : IAsyncDisposable
type BaseConnectionContext = class
    interface IAsyncDisposable
Public MustInherit Class BaseConnectionContext
Implements IAsyncDisposable
Inheritance
BaseConnectionContext
Derived
Implements

Constructors

BaseConnectionContext()

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