HttpResponse.OnCompleted Method
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.
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. |
- 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
ASP.NET Core 9.0 and other versions
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- 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.
Applies to
ASP.NET Core 9.0 and other versions
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |