MetalamaAPI documentationAspect APIMetalama.​Framework.​AdvisingMethod­Template­SelectorUse­Async­Template­For­Any­Awaitable
Open sandboxFocus

Property 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.

public bool UseAsyncTemplateForAnyAwaitable { get; }
Property Value
Type Description