public LockingNonceStore(INonceStore decorated, ILockFactory lockFactory) { if (lockFactory == null) { throw new ArgumentNullException(nameof(lockFactory)); } _decorated = decorated ?? throw new ArgumentNullException(nameof(decorated)); _lock = lockFactory.CreateLock(); }