public override void ExecuteBefore() { var lockTaken = false; MonitorEnhancements.Enter(GetParameter(0), ref lockTaken); ModifyParameter(1, lockTaken); }
public MonitorWrapper(object lockObject) { _lockObject = lockObject; var lockTaken = false; MonitorEnhancements.Enter(lockObject, ref lockTaken); }