Open sandboxFocus

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
bool