Beispiel #1
0
 public void Visit(PropertyDefinition property, VisitorContext context)
 {
     if (IsLazy(property) && property.GetMethod != null && !IsLazy(property.GetMethod))
     {
         var instrumentor = new DoubleCheckedLockingWeaver(property.GetMethod, context);
         instrumentor.Instrument();
     }
 }
Beispiel #2
0
 public void Visit(MethodDefinition method, VisitorContext context)
 {
     if (IsLazy(method))
     {
         var instrumentor = new DoubleCheckedLockingWeaver(method, context);
         instrumentor.Instrument();
     }
 }
Beispiel #3
0
 public void Visit(MethodDefinition method, VisitorContext context)
 {
     if (IsLazy(method))
     {
         var instrumentor = new DoubleCheckedLockingWeaver(method, context);
         instrumentor.Instrument();
     }
 }
Beispiel #4
0
 public void Visit(PropertyDefinition property, VisitorContext context)
 {
     if (IsLazy(property) && property.GetMethod != null && !IsLazy(property.GetMethod))
     {
         var instrumentor = new DoubleCheckedLockingWeaver(property.GetMethod, context);
         instrumentor.Instrument();
     }
 }
Beispiel #5
0
        public void Visit(MethodDefinition method, VisitorContext context)
        {
            var lazyAttribute = GetLazyAttribute(method);

            if (lazyAttribute != null)
            {
                var instrumentor = new DoubleCheckedLockingWeaver(method, context);
                instrumentor.Instrument();
                method.CustomAttributes.Remove(lazyAttribute);
            }
        }
Beispiel #6
0
        public void Visit(PropertyDefinition property, VisitorContext context)
        {
            var lazyAttribute = GetLazyAttribute(property);

            if (lazyAttribute != null && property.GetMethod != null && !IsLazy(property.GetMethod))
            {
                var instrumentor = new DoubleCheckedLockingWeaver(property.GetMethod, context);
                instrumentor.Instrument();
                property.CustomAttributes.Remove(lazyAttribute);
            }
        }