Ejemplo n.º 1
0
        public Task <ObjectResult> Rollback(RollbackMessage message)
        {
            var task = new Task <ObjectResult>(() => OnRollback(message));

            task.Start();
            return(task);
        }
        public void Rollback_Test()
        {
            var message = new RollbackMessage();

            //no-op
            message.Rollback(null);
        }
Ejemplo n.º 3
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;
        }
Ejemplo n.º 4
0
 public Task <ObjectResult> Rollback(RollbackMessage message)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 public IActionResult Rollback([FromBody] RollbackMessage dto)
 {
     return(Ok());
 }