public MethodDecoratorWeaver(MethodInfo method, IWeavingSettings weavingSettings) : base(method, weavingSettings) { MethodEndWeaver = new MethodEndWeaver(); MethodScopeWeaver = new MethodDecoratorScopeWeaver(method, weavingSettings); MethodDefintionWeaver = new MethodSignatureWeaver(weavingSettings.TypeDefinition); }
public MethodDecoratorWeaver(IWeavingSettings weavingSettings) : base(weavingSettings) { MethodEndWeaver = new MethodEndWeaver(); MethodScopeWeaver = new MethodDecoratorScopeWeaver(weavingSettings); MethodDefintionWeaver = new MethodSignatureWeaver(weavingSettings.TypeDefinition); }
public override MethodBuilder Weave(MethodInfo method) { var methodSignatureWeaver = new MethodSignatureWeaver(typeDefinition); var methodBuilder = methodSignatureWeaver.Weave(method); eventTypeBuilder.SetRemoveMethod(methodBuilder); return(methodBuilder); }
public override MethodBuilder Weave(MethodInfo method) { var methodSignatureWeaver = new MethodSignatureWeaver(typeDefinition); var methodBuilder = methodSignatureWeaver.Weave(method); eventTypeBuilder.SetAddMethod(methodBuilder); return methodBuilder; }
protected AspectMethodWeaver(MethodInfo method, IAspectDefinitionCollection aspectDefinitions, IAspectWeavingSettings aspectWeavingSettings) : base(method, aspectDefinitions, aspectWeavingSettings) { methodSignatureWeaver = new MethodSignatureWeaver(aspectWeavingSettings.WeavingSettings.TypeDefinition); }