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

定义

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

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

要传入回调的状态。

适用于