Example #1
0
        public override void Release(string serviceKey)
        {
            try
            {
                _redisStore.Delete(serviceKey, _token);

                if (SecondaryLockHandler != null)
                {
                    Task.Factory.StartNew(() => SecondaryLockHandler.Release(serviceKey));
                }
            }
            catch
            {
                SecondaryLockHandler?.Release(serviceKey);
            }
        }