HttpResponse.OnStarting Method

Definition

Overloads

OnStarting(Func<Task>)

Adds a delegate to be invoked just before response headers will be sent to the client.

OnStarting(Func<Object,Task>, Object)

Adds a delegate to be invoked just before response headers will be sent to the client.

OnStarting(Func<Task>)

Adds a delegate to be invoked just before response headers will be sent to the client.

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

Parameters

callback
Func<Task>

The delegate to execute.

OnStarting(Func<Object,Task>, Object)

Adds a delegate to be invoked just before response headers will be sent to the client.

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

Parameters

callback
Func<Object,Task>

The delegate to execute.

state
Object

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

Applies to