public void LockTest() { var locker = LockFactory.GetProvider("ZKLockProvider"); //var locker = new ZKLockProvider("/ZKLockProvider"); int workCount = 10; for (int i = 0; i < workCount; i++) { new Worker().DoWork("Woker" + i, locker); } }