HttpResponse.OnCompleted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- state
- Object
A state object to capture and pass back to the delegate.