PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Interception­Advice­Args­Builder Class / Interception­Advice­Args­Builder Methods / Interception­Advice­Args­Builder.​Emit­Store­Advice­Args­To­Local Method / Interception­Advice­Args­Builder.​Emit­Store­Advice­Args­To­Local Method (Aspect­Weaver­Instance, Instruction­Writer, Arguments­Writer, Method­Mapping­Writer, Method­Mapping, Boolean, Boolean, Metadata­Declaration, Metadata­Declaration, IType, ILocal­Storage, ILocal­Storage, Local­Variable­Symbol, IMethod, IField, IField, Action(Instruction­Writer))

InterceptionAdviceArgsBuilder.EmitStoreAdviceArgsToLocal Method (AspectWeaverInstance, InstructionWriter, ArgumentsWriter, MethodMappingWriter, MethodMapping, Boolean, Boolean, MetadataDeclaration, MetadataDeclaration, IType, ILocalStorage, ILocalStorage, LocalVariableSymbol, IMethod, IField, IField, Action<InstructionWriter>)

Emits instructions that construct an AdviceArgs object (or load and complete construction of an existing one, if available) and store it into a local variable.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public void EmitStoreAdviceArgsToLocal(
	AspectWeaverInstance aspectWeaverInstance,
	InstructionWriter instructionWriter,
	ArgumentsWriter argumentsWriter,
	MethodMappingWriter methodMappingWriter,
	MethodMapping bindingMethodMapping,
	bool requiresReflectionObject,
	bool requiresDeclarationIdentifier,
	MetadataDeclaration targetMember,
	MetadataDeclaration originalTargetMember,
	IType targetType,
	ref ILocalStorage adviseArgsVariable,
	ref ILocalStorage loadedFromContextVariable,
	LocalVariableSymbol oldBindingVariable,
	IMethod adviceArgsConstructor,
	IField adviceArgsBindingField,
	IField singletonBindingField,
	Action<InstructionWriter> loadAdditionalConstructorParametersAction
)

Parameters

aspectWeaverInstance
Type: PostSharp.Sdk.AspectWeaver.AspectWeaverInstance
The AspectWeaverInstance for which the AdviceArgs is created.
instructionWriter
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
argumentsWriter
Type: PostSharp.Sdk.AspectWeaver.Transformations.ArgumentsWriter
An ArgumentsWriter.
methodMappingWriter
Type: PostSharp.Sdk.AspectInfrastructure.MethodMappingWriter
The MethodMappingWriter for the current context.
bindingMethodMapping
Type: PostSharp.Sdk.AspectInfrastructure.MethodMapping
Optionally, the MethodMapping for the next context, so that the relevant context items can be added to this context.
requiresReflectionObject
Type: System.Boolean
true if the property containing the reflection object should be set, otherwise false.
requiresDeclarationIdentifier
Type: System.Boolean
targetMember
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
Declaration on which the advice is applied.
originalTargetMember
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
targetType
Type: PostSharp.Sdk.CodeModel.IType
Relevant generic instance of the declaring type of targetMember.
adviseArgsVariable
Type: PostSharp.Sdk.AspectInfrastructure.ILocalStorage
Local variable where the AdviceArgs should be stored. If the input value of this parameter is null, the local variable is created.
loadedFromContextVariable
Type: PostSharp.Sdk.AspectInfrastructure.ILocalStorage
oldBindingVariable
Type: PostSharp.Sdk.CodeModel.LocalVariableSymbol
Variable into which the previous binding should be stored in case the AdviceArgs is reused.
adviceArgsConstructor
Type: PostSharp.Sdk.CodeModel.IMethod
Constructor of the AdviceArgs class.
adviceArgsBindingField
Type: PostSharp.Sdk.CodeModel.IField
Field of AdviceArgs containing the binding.
singletonBindingField
Type: PostSharp.Sdk.CodeModel.IField
Static field containing the singleton binding to be assigned to adviseArgsVariable.
loadAdditionalConstructorParametersAction
Type: System.Action<InstructionWriter>
Delegates that emit instructions that load additional constructor parameters on the stack.
See Also