IsRequired
Gets or sets a value indicating whether the target must be an async method. When this property is true, the compiler reports an
error when the target method is not transformed as an async method. When it is false, the parameter receives the default value of
AsyncCallId. The default value is false.
Declaration
public bool IsRequired { get; set; }Property Value
| Type | Description |
|---|---|
| bool |
Remarks
When the advice is selected by MatchPointcut, a target method that is neither async nor returns an awaitable type is skipped, and no error is reported.