IConnectionCompleteFeature.OnCompleted 方法

定义

注册在连接完全完成处理后要调用的回调。 这适用于资源清理。

public:
 void OnCompleted(Func<System::Object ^, System::Threading::Tasks::Task ^> ^ callback, System::Object ^ state);
public void OnCompleted (Func<object,System.Threading.Tasks.Task> callback, object state);
abstract member OnCompleted : Func<obj, System.Threading.Tasks.Task> * obj -> unit
Public Sub OnCompleted (callback As Func(Of Object, Task), state As Object)

参数

callback
Func<Object,Task>

在连接完成处理后要调用的回调。

state
Object

要传入回调的状态。

适用于