C# Class DotNetWorkQueue.Transport.PostgreSQL.Basic.Message.RollbackMessage

Rolls back a message by either rolling back a transaction or updating a status
显示文件 Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
Rollback ( IMessageContext context ) : void

Rollbacks the specified message by setting the status

RollbackForTransaction ( IMessageContext context ) : void

Rollbacks the specified message by rolling back the transaction

RollbackMessage ( QueueConsumerConfiguration configuration, ICommandHandler rollbackCommand, ICommandHandler setStatusCommandHandler, SqlHeaders headers ) : System

Initializes a new instance of the RollbackMessage class.

Method Details

Rollback() public method

Rollbacks the specified message by setting the status
public Rollback ( IMessageContext context ) : void
context IMessageContext The context.
return void

RollbackForTransaction() public method

Rollbacks the specified message by rolling back the transaction
public RollbackForTransaction ( IMessageContext context ) : void
context IMessageContext The context.
return void

RollbackMessage() public method

Initializes a new instance of the RollbackMessage class.
public RollbackMessage ( QueueConsumerConfiguration configuration, ICommandHandler rollbackCommand, ICommandHandler setStatusCommandHandler, SqlHeaders headers ) : System
configuration DotNetWorkQueue.Configuration.QueueConsumerConfiguration The configuration.
rollbackCommand ICommandHandler The rollback command.
setStatusCommandHandler ICommandHandler The set status command handler.
headers SqlHeaders The headers.
return System