MethodInterceptionAspect.UnsupportedTargetAction Property |
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)

public UnsupportedTargetAction UnsupportedTargetAction { get; set; }
Property Value
Type: UnsupportedTargetAction
Starting with C#7 async methods can have return types other than Task or Task<TResult>. Async method interception does not support this type of async methods. By default, the build error is raised whenever async method interception is applied to a method that returns awaitable type other than Task or Task<TResult>.
Set this property to change how unsupported async methods are handled during compile time.
