Commits a processed message
        /// <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;
        }
Example #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;
        }