Inheritance: AbstractMemberSignatureWeaver
コード例 #1
0
 public MethodDecoratorWeaver(MethodInfo method, IWeavingSettings weavingSettings)
     : base(method, weavingSettings)
 {
     MethodEndWeaver = new MethodEndWeaver();
     MethodScopeWeaver = new MethodDecoratorScopeWeaver(method, weavingSettings);
     MethodDefintionWeaver = new MethodSignatureWeaver(weavingSettings.TypeDefinition);
 }
コード例 #2
0
 public MethodDecoratorWeaver(IWeavingSettings weavingSettings)
     : base(weavingSettings)
 {
     MethodEndWeaver       = new MethodEndWeaver();
     MethodScopeWeaver     = new MethodDecoratorScopeWeaver(weavingSettings);
     MethodDefintionWeaver = new MethodSignatureWeaver(weavingSettings.TypeDefinition);
 }
コード例 #3
0
        public override MethodBuilder Weave(MethodInfo method)
        {
            var methodSignatureWeaver = new MethodSignatureWeaver(typeDefinition);
            var methodBuilder         = methodSignatureWeaver.Weave(method);

            eventTypeBuilder.SetRemoveMethod(methodBuilder);

            return(methodBuilder);
        }
コード例 #4
0
        public override MethodBuilder Weave(MethodInfo method)
        {
            var methodSignatureWeaver = new MethodSignatureWeaver(typeDefinition);
            var methodBuilder = methodSignatureWeaver.Weave(method);

            eventTypeBuilder.SetAddMethod(methodBuilder);

            return methodBuilder;
        }
コード例 #5
0
ファイル: AspectMethodWeaver.cs プロジェクト: sagifogel/NCop
 protected AspectMethodWeaver(MethodInfo method, IAspectDefinitionCollection aspectDefinitions, IAspectWeavingSettings aspectWeavingSettings)
     : base(method, aspectDefinitions, aspectWeavingSettings)
 {
     methodSignatureWeaver = new MethodSignatureWeaver(aspectWeavingSettings.WeavingSettings.TypeDefinition);
 }