HttpResponseFeature.OnCompleted(Func<Object,Task>, Object) 方法

定义

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

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

参数

callback
Func<Object,Task>

响应完成后要调用的回调。

state
Object

要传入回调的状态。

实现

适用于