AdviceAnalyzer.Initialize Method (ModuleDeclaration, IMethod, SerializationType) |
Initializes the current AdviceAnalyzer. This method must be invoked by implementations of Initialize(ModuleDeclaration).
Namespace: PostSharp.Sdk.AspectWeaver
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
protected void Initialize( ModuleDeclaration module, IMethod optimizationAttributeConstructor, SerializationType optimizationSerializationType )
Parameters
- module
- Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
Module in which advices have to be initialized. - optimizationAttributeConstructor
- Type: PostSharp.Sdk.CodeModel.IMethod
Constructor of the specific custom attribute derived from AdviceOptimizationAttribute. - optimizationSerializationType
- Type: PostSharp.Sdk.CodeModel.SerializationType
Serialization type of the first parameter of optimizationAttributeConstructor.