HttpResponse.OnCompleted Method

Definition

Overloads

OnCompleted(Func<Task>)

Adds a delegate to be invoked after the response has finished being sent to the client.

OnCompleted(Func<Object,Task>, Object)

Adds a delegate to be invoked after the response has finished being sent to the client.

OnCompleted(Func<Task>)

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

Adds a delegate to be invoked after the response has finished being sent to the client.

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))

Parameters

callback
Func<Task>

The delegate to invoke.

Applies to

OnCompleted(Func<Object,Task>, Object)

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

Adds a delegate to be invoked after the response has finished being sent to the client.

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)

Parameters

callback
Func<Object,Task>

The delegate to invoke.

state
Object

A state object to capture and pass back to the delegate.

Applies to