HttpResponse.OnCompleted 方法

定义

重载

OnCompleted(Func<Task>)

添加在响应发送到客户端后要调用的委托。

OnCompleted(Func<Object,Task>, Object)

添加在响应发送到客户端后要调用的委托。

OnCompleted(Func<Task>)

Source:
HttpResponse.cs
Source:
HttpResponse.cs
Source:
HttpResponse.cs

添加在响应发送到客户端后要调用的委托。

public:
 virtual void OnCompleted(Func<System::Threading::Tasks::Task ^> ^ callback);
public virtual void OnCompleted (Func<System.Threading.Tasks.Task> callback);
abstract member OnCompleted : Func<System.Threading.Tasks.Task> -> unit
override this.OnCompleted : Func<System.Threading.Tasks.Task> -> unit
Public Overridable Sub OnCompleted (callback As Func(Of Task))

参数

callback
Func<Task>

要调用的委托。

适用于

OnCompleted(Func<Object,Task>, Object)

Source:
HttpResponse.cs
Source:
HttpResponse.cs
Source:
HttpResponse.cs

添加在响应发送到客户端后要调用的委托。

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

参数

callback
Func<Object,Task>

要调用的委托。

state
Object

要捕获并传递回委托的状态对象。

适用于