public AspectMethodWeaver(IAspectDefinitionCollection aspectDefinitions, IWeavingSettings weavingSettings) : base(weavingSettings) { var aspectExpression = new AspectExpressionTreeBuilder(aspectDefinitions, weavingSettings).Build(); MethodEndWeaver = new MethodEndWeaver(); MethodScopeWeaver = aspectExpression.Reduce(AspectWeavingSettingsImpl.Empty); MethodDefintionWeaver = new MethodSignatureWeaver(weavingSettings.TypeDefinition); }
protected AspectMethodWeaver(MethodInfo method, IAspectDefinitionCollection aspectDefinitions, IAspectWeavingSettings aspectWeavingSettings) : base(method, aspectDefinitions, aspectWeavingSettings) { methodSignatureWeaver = new MethodSignatureWeaver(aspectWeavingSettings.WeavingSettings.TypeDefinition); }