Rolls back a message by either rolling back a transaction or updating a status
示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HandleMessage"/> class.
        /// </summary>
        /// <param name="commitMessage">The commit message.</param>
        /// <param name="rollbackMessage">The rollback message.</param>
        public HandleMessage(CommitMessage commitMessage, 
            RollbackMessage rollbackMessage)
        {
            Guard.NotNull(() => commitMessage, commitMessage);
            Guard.NotNull(() => rollbackMessage, rollbackMessage);

            RollbackMessage = rollbackMessage;
            CommitMessage = commitMessage;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HandleMessage"/> class.
        /// </summary>
        /// <param name="commitMessage">The commit message.</param>
        /// <param name="rollbackMessage">The rollback message.</param>
        public HandleMessage(CommitMessage commitMessage,
                             RollbackMessage rollbackMessage)
        {
            Guard.NotNull(() => commitMessage, commitMessage);
            Guard.NotNull(() => rollbackMessage, rollbackMessage);

            RollbackMessage = rollbackMessage;
            CommitMessage   = commitMessage;
        }