C# 클래스 DotNetWorkQueue.Transport.SqlServer.Basic.SqlServerMessageQueueReceive

Handles receive of messages, and passing them back to the caller
상속: IReceiveMessages
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

ReceiveMessage() 공개 메소드

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.
리턴 IReceivedMessageInternal

ReceiveMessageAsync() 공개 메소드

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.
리턴 Task

SqlServerMessageQueueReceive() 공개 메소드

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.
리턴 System