public override bool ValidateAspectInstance(AspectInstanceInfo aspectInstanceInfo)
 {
     if (aspectInstanceInfo.TargetElement.GetTokenType() != TokenType.Property) {
         Message.Write(aspectInstanceInfo.TargetElement, SeverityType.Error, "PE-GPE-0001"
             , "The Guard Property aspect is not allowed on this type of target.");
         return false;
     }
     return base.ValidateAspectInstance(aspectInstanceInfo);
 }
        public override bool ValidateAspectInstance(AspectInstanceInfo aspectInstanceInfo)
        {
            IMethod targetMethod = (IMethod) aspectInstanceInfo.TargetElement;

            if ( targetMethod.IsAbstract )
            {
                InstrumentationMessageSource.Instance.Write( targetMethod, SeverityType.Error, "DIA002", new object[]{ targetMethod } );
                return false;
            }

            return true;
        }
Exemple #3
0
        public override bool ValidateAspectInstance(AspectInstanceInfo aspectInstanceInfo)
        {
            IMethod targetMethod = (IMethod)aspectInstanceInfo.TargetElement;

            if (targetMethod.IsAbstract)
            {
                InstrumentationMessageSource.Instance.Write(targetMethod, SeverityType.Error, "DIA002", new object[] { targetMethod });
                return(false);
            }

            return(true);
        }
 public LoggingAspectWeaverInstance( MethodLevelAspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo )
     : base(aspectWeaver, aspectInstanceInfo)
 {
 }
 protected override AspectWeaverInstance CreateAspectWeaverInstance( AspectInstanceInfo aspectInstanceInfo )
 {
     return new LoggingAspectWeaverInstance( this, aspectInstanceInfo );
 }
 public ImplementCloneableAspectWeaverInstance(ImplementCloneableAspectWeaver parent, AspectInstanceInfo aspectInstanceInfo)
     : base(parent, aspectInstanceInfo)
 {
     this.parent = parent;
 }
 protected override AspectWeaverInstance CreateAspectWeaverInstance(AspectInstanceInfo aspectInstanceInfo)
 {
     return(new ImplementCloneableAspectWeaverInstance(this, aspectInstanceInfo));
 }
 public ImplementValidableAspectWeaverInstance(ImplementValidableAspectWeaver parent, AspectInstanceInfo aspectInstanceInfo)
     : base(parent, aspectInstanceInfo)
 {
     this.parent = parent;
 }
 public AsyncStateMachineAspectWeaverInstance(AsyncStateMachineAspectWeaver parent, AspectInstanceInfo aspectInstanceInfo) :
     base(parent, aspectInstanceInfo)
 {
     this.parent             = parent;
     this.aspectInstanceInfo = aspectInstanceInfo;
 }
 public Instance(AspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo)
     : base(aspectWeaver, aspectInstanceInfo)
 {
     _concreteAspectWeaver = (NotifyPropertyChangedAspectWeaver) aspectWeaver;
 }
 public override bool ValidateAspectInstance(AspectInstanceInfo aspectInstanceInfo)
 {
     return base.ValidateAspectInstance(aspectInstanceInfo);
 }
Exemple #12
0
 public Instance(AspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo)
     : base(aspectWeaver, aspectInstanceInfo)
 {
 }
 public LoggingAspectWeaverInstance(MethodLevelAspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo)
     : base(aspectWeaver, aspectInstanceInfo)
 {
 }
 public Instance(AspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo)
     : base(aspectWeaver, aspectInstanceInfo)
 {
 }
 protected override AspectWeaverInstance CreateAspectWeaverInstance(AspectInstanceInfo aspectInstanceInfo)
 {
     return(new ClrDumpAspectWeaverInstance(this, aspectInstanceInfo));
 }
 protected override AspectWeaverInstance CreateAspectWeaverInstance( AspectInstanceInfo aspectInstanceInfo )
 {
     return new ImplementValidableAspectWeaverInstance( this, aspectInstanceInfo );
 }
 public ClrDumpAspectWeaverInstance(MethodLevelAspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo) : base(aspectWeaver, aspectInstanceInfo)
 {
 }
 protected override AspectWeaverInstance CreateAspectWeaverInstance(AspectInstanceInfo aspectInstanceInfo)
 {
     return(new AsyncStateMachineAspectWeaverInstance(this, aspectInstanceInfo));
 }