Exemple #1
0
        public async Task TestSingleLockAsync()
        {
            var resources = Mocker.MockResourcesWithThree();

            using (IDistributedLock redisLock = await _lockManager.LockAsync(resources, TimeSpan.FromSeconds(30), null, null).ConfigureAwait(false))
            {
                Assert.True(redisLock.IsAcquired);
            }
        }