C# Class DotNetWorkQueue.Queue.ProcessMessageAsync

Runs user code and commits the message
Exibir arquivo Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
Handle ( IMessageContext context, IReceivedMessageInternal transportMessage ) : Task

Handles processing the specified message with the context

ProcessMessageAsync ( IHandleMessage handler, IHeartBeatWorkerFactory heartBeatWorkerFactory, MessageExceptionHandler messageExceptionHandler, ICommitMessage commitMessage ) : System

Initializes a new instance of the ProcessMessageAsync class.

Method Details

Handle() public method

Handles processing the specified message with the context
public Handle ( IMessageContext context, IReceivedMessageInternal transportMessage ) : Task
context IMessageContext The context.
transportMessage IReceivedMessageInternal The transport message.
return Task

ProcessMessageAsync() public method

Initializes a new instance of the ProcessMessageAsync class.
public ProcessMessageAsync ( IHandleMessage handler, IHeartBeatWorkerFactory heartBeatWorkerFactory, MessageExceptionHandler messageExceptionHandler, ICommitMessage commitMessage ) : System
handler IHandleMessage The handler.
heartBeatWorkerFactory IHeartBeatWorkerFactory The heart beat worker factory.
messageExceptionHandler MessageExceptionHandler The message exception handler.
commitMessage ICommitMessage The commit message.
return System