Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Advising / Method­Template­Selector / Use­Async­Template­For­Any­Awaitable

Property UseAsyncTemplateForAnyAwaitable

UseAsyncTemplateForAnyAwaitable

Gets a value indicating whether the AsyncTemplate must be applied to all methods returning an awaitable type (including IAsyncEnumerable and IAsyncEnumerator) instead of only to methods that have the async modifier. If the implementation of the template method is async, the awaitable type must also have an async method builder, otherwise the method will be processed by DefaultTemplate.

Declaration
public bool UseAsyncTemplateForAnyAwaitable { get; }
Property Value
Type Description
Boolean