예제 #1
0
        public void Rollback()
        {
            if (redisClient.CurrentTransaction == null)
            {
                throw new InvalidOperationException("There is no current transaction to Rollback");
            }

            redisClient.CurrentTransaction = null;
            redisClient.ClearTypeIdsRegisteredDuringTransaction();
            redisClient.Discard();
        }