OverrideAsyncMethod()
Template for overriding asynchronous methods.
Declaration
[Template(IsEmpty = true)]
public virtual Task<dynamic?> OverrideAsyncMethod()Returns
| Type | Description |
|---|---|
| Task<dynamic> | A Task representing the asynchronous operation. |
Remarks
By default, this template is selected for methods with the async modifier. When UseAsyncTemplateForAnyAwaitable
is set to true, it applies to all methods returning an awaitable type (Task, ValueTask, IAsyncEnumerable,
IAsyncEnumerator).
If not overridden in a derived class, OverrideMethod() is used instead. This template is marked with
[Template(IsEmpty = true)], making it optional to override.