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

Handles receiving a message
显示文件 Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
GetMessage ( IMessageContext context, Connection connection, Action noMessageFoundActon, List routes ) : IReceivedMessageInternal

Returns the next message, if any.

GetMessageAsync ( IMessageContext context, Connection connection, Action noMessageFoundActon, List routes ) : Task

Returns the next message, if any.

ReceiveMessage ( QueueConsumerConfiguration configuration, IReceivedMessageInternal>.IQueryHandler receiveMessage, ICommandHandler setStatusCommandHandler, IQueueCancelWork cancelToken, IQueryHandler receiveMessageAsync ) : System

Initializes a new instance of the ReceiveMessage class.

Method Details

GetMessage() public method

Returns the next message, if any.
public GetMessage ( IMessageContext context, Connection connection, Action noMessageFoundActon, List routes ) : IReceivedMessageInternal
context IMessageContext The context.
connection Connection The connection.
noMessageFoundActon Action The no message found action.
routes List The routes.
return IReceivedMessageInternal

GetMessageAsync() public method

Returns the next message, if any.
public GetMessageAsync ( IMessageContext context, Connection connection, Action noMessageFoundActon, List routes ) : Task
context IMessageContext The context.
connection Connection The connection.
noMessageFoundActon Action The no message found action.
routes List The routes.
return Task

ReceiveMessage() public method

Initializes a new instance of the ReceiveMessage class.
public ReceiveMessage ( QueueConsumerConfiguration configuration, IReceivedMessageInternal>.IQueryHandler receiveMessage, ICommandHandler setStatusCommandHandler, IQueueCancelWork cancelToken, IQueryHandler receiveMessageAsync ) : System
configuration DotNetWorkQueue.Configuration.QueueConsumerConfiguration The configuration.
receiveMessage IReceivedMessageInternal>.IQueryHandler The receive message.
setStatusCommandHandler ICommandHandler The set status command handler.
cancelToken IQueueCancelWork The cancel token.
receiveMessageAsync IQueryHandler The receive message asynchronous.
return System