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