public ThreadSafeInterceptor(ILock theLock, Predicate<MethodInfo> methodIncluder, ILockController lockController)
        {
            if (theLock == null)
            {
                throw new ArgumentNullException("theLock");
            }

            if (methodIncluder == null)
            {
                throw new ArgumentNullException("methodIncluder");
            }

            if (lockController == null)
            {
                throw new ArgumentNullException("lockController");
            }

            if (!lockController.CanControl(theLock))
            {
                throw new ArgumentException(ExceptionMessages.LockNotSupportedByLockController, "lockController");
            }

            _lock = theLock;
            _lockController = lockController;
            _methodIncluder = methodIncluder;
        }
Ejemplo n.º 2
0
        public ThreadSafeInterceptor(ILock theLock, Predicate <MethodInfo> methodIncluder, ILockController lockController)
        {
            if (theLock == null)
            {
                throw new ArgumentNullException("theLock");
            }

            if (methodIncluder == null)
            {
                throw new ArgumentNullException("methodIncluder");
            }

            if (lockController == null)
            {
                throw new ArgumentNullException("lockController");
            }

            if (!lockController.CanControl(theLock))
            {
                throw new ArgumentException(ExceptionMessages.LockNotSupportedByLockController, "lockController");
            }

            _lock           = theLock;
            _lockController = lockController;
            _methodIncluder = methodIncluder;
        }
 public SafeFailingLockController(ILockController next) : base(next)
 {
 }
Ejemplo n.º 4
0
 public SafeFailingLockController(ILockController next) : base(next)
 {
 }
 public ChainableLockControllerBase(ILockController next)
 {
     _next = next;
 }
Ejemplo n.º 6
0
 public ChainableLockControllerBase(ILockController next)
 {
     _next = next;
 }