Share via


MultiplexedConnectionContext 类

定义

封装有关多路复用连接的所有信息。

public abstract class MultiplexedConnectionContext : Microsoft.AspNetCore.Connections.BaseConnectionContext, IAsyncDisposable
type MultiplexedConnectionContext = class
    inherit BaseConnectionContext
    interface IAsyncDisposable
Public MustInherit Class MultiplexedConnectionContext
Inherits BaseConnectionContext
Implements IAsyncDisposable
继承
MultiplexedConnectionContext
实现

构造函数

MultiplexedConnectionContext()

封装有关多路复用连接的所有信息。

属性

ConnectionClosed

客户端连接关闭时触发。

(继承自 BaseConnectionContext)
ConnectionId

获取或设置在跟踪日志中表示此连接的唯一标识符。

(继承自 BaseConnectionContext)
Features

获取此连接上可用的服务器和中间件提供的功能的集合。

(继承自 BaseConnectionContext)
Items

获取或设置可用于在此连接范围内共享数据的键/值集合。

(继承自 BaseConnectionContext)
LocalEndPoint

获取或设置此连接的本地终结点。

(继承自 BaseConnectionContext)
RemoteEndPoint

获取或设置此连接的远程终结点。

(继承自 BaseConnectionContext)

方法

Abort()

中止基础连接。

(继承自 BaseConnectionContext)
Abort(ConnectionAbortedException)

中止基础连接。

(继承自 BaseConnectionContext)
AcceptAsync(CancellationToken)

异步接受连接上的传入流。

ConnectAsync(IFeatureCollection, CancellationToken)

创建出站连接

DisposeAsync()

释放基础连接的资源。

(继承自 BaseConnectionContext)

适用于