Open sandboxFocus

Class MethodInterceptionArgs

In PostSharp, this object exposed the run-time execution context to the advice. However, in Metalama, advice do not execute at run time. Instead, advice are templates that generate run-time code. This run-time code does not need helper objects to represent the execution context.

Inheritance
MethodInterceptionArgs
Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, this object exposed the run-time execution context to the advice. However, in Metalama, advice do not execute at run time. Instead, advice are templates that generate run-time code. This run-time code does not need helper objects to represent the execution context.", false)]
public abstract class MethodInterceptionArgs : AdviceArgs

Properties

Name Description
Arguments

Use meta.Target.Parameters.

AsyncBinding

Use meta.Target.Method.

Binding

Use meta.Target.Method.

IsAsync

Currently not exposed in the Metalama API.

Method

Use meta.Target.Method.

ReturnValue

When you call meta.Proceed(), store the return value in a local variable.

Methods

Name Description
Invoke(Arguments)

Use meta.Target.Method.Invoke(params dynamic?[]).

InvokeAsync(Arguments)

Use meta.Target.Method.Invoke(params dynamic?[]).

Proceed()

Use meta.Proceed().

ProceedAsync()

Use meta.ProceedAsync().