Open sandboxFocus

Interface ILocationInterceptionArgs

In PostSharp, this interface exposed the run-time execution context to a location interception 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.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, this interface exposed the run-time execution context to a location interception 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 interface ILocationInterceptionArgs

Properties

Name Description
Binding

Use meta.Target.FieldOrProperty.

Index

Use meta.Target.Parameters.

Instance

Use meta.This.

Location

Use meta.Target.FieldOrProperty.

LocationFullName

Not implemented in Metalama.

LocationName

Use meta.Target.FieldOrProperty.Name.

Value

In PostSharp, this property is set when ProceedGetValue() is called. It is not necessary on Metalama.

Methods

Name Description
Execute<TPayload>(ILocationInterceptionArgsAction<TPayload>, ref TPayload)

No equivalent in Metalama.

GetCurrentValue()

In the get override advice, call meta.Proceed(). Otherwise, grt meta.Target.FieldOrProperty.Value.

ProceedGetValue()

In the get override advice, get meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty.Value.

ProceedSetValue()

In the set override advice, set meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty.Value.

SetNewValue(object)

In the set override advice, call meta.Proceed(). Otherwise, set meta.Target.FieldOrProperty.Value.

Extension Methods