Open sandboxFocus

Interface IAsyncMethodBinding

In PostSharp, a binding was a run-time object that allowed the run-time code of the aspect to call the target code. In Metalama, aspects no longer have run-time code. Instead, they have templates that are expanded at compile time and generate run-time code. Templates can generate run-time code that accesses target code using dynamic code or invokers. For methods, use meta.Target.Method.Invoke(params dynamic?[]).

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, a binding was a run-time object that allowed the run-time code of the aspect to call the target code. In Metalama, aspects no longer have run-time code. Instead, they have templates that are expanded at compile time and generate run-time code. Templates can generate run-time code that accesses target code using dynamic code or invokers. For methods, use 'meta'.'meta.Target'.'IMetaTarget.Method'.'IMethodInvoker.Invoke(params dynamic?[])'.", false)]
public interface IAsyncMethodBinding : IMethodBinding

Methods

Name Description
InvokeAsync(ref object, Arguments)

In Metalama, use meta.Target.Method.Invoke(params dynamic?[]).

Extension Methods