Beispiel #1
0
        public Task Discard() =>
        ExecuteWithSession(async session =>
        {
            var result = await _transactionClient.Discard(session).ConfigureAwait(false);

            if (result.IsFailure)
            {
                throw new RedisException(
                    $"Error while discarding transaction [REDIS CODE: {result.Error}]",
                    result.Exception);
            }
        });