C# Class DotNetWorkQueue.Transport.SqlServer.Basic.SqlServerMessageQueueReceive

Handles receive of messages, and passing them back to the caller
Inheritance: IReceiveMessages
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode Description
ReceiveMessage ( IMessageContext context ) : IReceivedMessageInternal

Returns a message to process.

ReceiveMessageAsync ( IMessageContext context ) : Task

Returns a message to process.

SqlServerMessageQueueReceive ( QueueConsumerConfiguration configuration, IConnectionFactory connectionFactory, IQueueCancelWork cancelWork, HandleMessage handleMessage, ReceiveMessage receiveMessages, SqlHeaders sqlHeaders ) : System

Initializes a new instance of the SqlServerMessageQueueReceive class.

Private Methods

Méthode Description
ContextCleanup ( IMessageContext context, Connection connection ) : void

Clean up the message context when processing is done

ContextOnCommit ( object sender, EventArgs eventArgs ) : void

On Commit

ContextOnCommitTransaction ( object sender, EventArgs eventArgs ) : void

Commit a message

ContextOnRollback ( object sender, EventArgs eventArgs ) : void

On Rollback

ContextOnRollbackTransaction ( object sender, EventArgs eventArgs ) : void

Roll back a message

GetConnectionAndSetOnContext ( IMessageContext context ) : Connection

Creates the connection object for the parent caller and stores it on the worker context.

context_Cleanup ( object sender, EventArgs e ) : void

Handles the Cleanup event of the context control.

Method Details

ReceiveMessage() public méthode

Returns a message to process.
An error occurred while attempting to read messages from the queue
public ReceiveMessage ( IMessageContext context ) : IReceivedMessageInternal
context IMessageContext The context.
Résultat IReceivedMessageInternal

ReceiveMessageAsync() public méthode

Returns a message to process.
An error occurred while attempting to read messages from the queue
public ReceiveMessageAsync ( IMessageContext context ) : Task
context IMessageContext The message context.
Résultat Task

SqlServerMessageQueueReceive() public méthode

Initializes a new instance of the SqlServerMessageQueueReceive class.
public SqlServerMessageQueueReceive ( QueueConsumerConfiguration configuration, IConnectionFactory connectionFactory, IQueueCancelWork cancelWork, HandleMessage handleMessage, ReceiveMessage receiveMessages, SqlHeaders sqlHeaders ) : System
configuration DotNetWorkQueue.Configuration.QueueConsumerConfiguration The configuration.
connectionFactory IConnectionFactory The connection factory.
cancelWork IQueueCancelWork The cancel work.
handleMessage DotNetWorkQueue.Transport.SqlServer.Basic.Message.HandleMessage The handle message.
receiveMessages DotNetWorkQueue.Transport.SqlServer.Basic.Message.ReceiveMessage The receive messages.
sqlHeaders SqlHeaders The SQL headers.
Résultat System