Esempio n. 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();
     }
 }
Esempio n. 2
0
 public void Visit(MethodDefinition method, VisitorContext context)
 {
     if (IsLazy(method))
     {
         var instrumentor = new DoubleCheckedLockingWeaver(method, context);
         instrumentor.Instrument();
     }
 }
Esempio n. 3
0
 public void Visit(MethodDefinition method, VisitorContext context)
 {
     if (IsLazy(method))
     {
         var instrumentor = new DoubleCheckedLockingWeaver(method, context);
         instrumentor.Instrument();
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 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);
            }
        }
Esempio n. 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);
            }
        }