PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Method­Execution­Advice­Args­Builder Class / Method­Execution­Advice­Args­Builder Methods / Method­Execution­Advice­Args­Builder.​Emit­Store­Method­Execution­Advice­Args­Into­Local Method

MethodExecutionAdviceArgsBuilder.EmitStoreMethodExecutionAdviceArgsIntoLocal Method

Emit instructions that build a MethodExecutionArgs instance.

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 EmitStoreMethodExecutionAdviceArgsIntoLocal(
	AspectWeaverInstance aspectWeaverInstance,
	IMethod targetMethod,
	IMethod originalTargetMethod,
	MethodMappingWriter methodMappingWriter,
	MethodMapping bindingMethodMapping,
	ArgumentsWriter argumentsWriter,
	InstructionWriter instructionWriter,
	MethodExecutionAdviceOptimizations optimizations,
	InstructionBlock instructionBlock,
	out ILocalStorage adviceArgsVariable
)

Parameters

aspectWeaverInstance
Type: PostSharp.Sdk.AspectWeaver.AspectWeaverInstance
The AspectWeaverInstance for which the AdviceArgs is created.
targetMethod
Type: PostSharp.Sdk.CodeModel.IMethod
Method to which the advise is applied.
originalTargetMethod
Type: PostSharp.Sdk.CodeModel.IMethod

[Missing <param name="originalTargetMethod"/> documentation for "M:PostSharp.Sdk.AspectWeaver.MethodExecutionAdviceArgsBuilder.EmitStoreMethodExecutionAdviceArgsIntoLocal(PostSharp.Sdk.AspectWeaver.AspectWeaverInstance,PostSharp.Sdk.CodeModel.IMethod,PostSharp.Sdk.CodeModel.IMethod,PostSharp.Sdk.AspectInfrastructure.MethodMappingWriter,PostSharp.Sdk.AspectInfrastructure.MethodMapping,PostSharp.Sdk.AspectWeaver.Transformations.ArgumentsWriter,PostSharp.Sdk.CodeModel.InstructionWriter,PostSharp.Aspects.Internals.MethodExecutionAdviceOptimizations,PostSharp.Sdk.CodeModel.InstructionBlock,PostSharp.Sdk.AspectInfrastructure.ILocalStorage@)"]

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.
argumentsWriter
Type: PostSharp.Sdk.AspectWeaver.Transformations.ArgumentsWriter
An ArgumentsWriter.
instructionWriter
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
optimizations
Type: MethodExecutionAdviceOptimizations
Advise optimizations.
instructionBlock
Type: PostSharp.Sdk.CodeModel.InstructionBlock
InstructionBlock where the local variable adviceArgsVariable must be defined.
adviceArgsVariable
Type: PostSharp.Sdk.AspectInfrastructure.ILocalStorage
At output, the local variable containing the MethodExecutionArgs.
See Also