ConnectionDelegate 代理人

定義

可處理連接的函式。

public delegate System::Threading::Tasks::Task ^ ConnectionDelegate(ConnectionContext ^ connection);
public delegate System.Threading.Tasks.Task ConnectionDelegate(ConnectionContext connection);
type ConnectionDelegate = delegate of ConnectionContext -> Task
Public Delegate Function ConnectionDelegate(connection As ConnectionContext) As Task 

參數

connection
ConnectionContext

ConnectionContext 表示連接。

傳回值

Task 表示連接存留期。 工作完成時,將會關閉連線。

適用於