共用方式為


IConnectionFactory.DisposeAsync(ConnectionContext) 方法

定義

處置指定的 ConnectionContext

public:
 System::Threading::Tasks::Task ^ DisposeAsync(Microsoft::AspNetCore::Connections::ConnectionContext ^ connection);
public System.Threading.Tasks.Task DisposeAsync (Microsoft.AspNetCore.Connections.ConnectionContext connection);
abstract member DisposeAsync : Microsoft.AspNetCore.Connections.ConnectionContext -> System.Threading.Tasks.Task
Public Function DisposeAsync (connection As ConnectionContext) As Task

參數

connection
ConnectionContext

要處置的連線。

傳回

Task 表示非同步處置。

適用於