Skip to main content

IMessageHandler

Single threaded message handler that can process all messages of a particular message type.

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IMessageHandler

Properties

MessageType

The type of the message this handler processes

View Source
Declaration
Type MessageType { get; }

MqClient

The MqClient processing the message

View Source
Declaration
IMessageQueueClient MqClient { get; }

Methods

Process(IMessageQueueClient)

Process all messages pending

View Source
Declaration
void Process(IMessageQueueClient mqClient)
Parameters
TypeName
ServiceStack.Messaging.IMessageQueueClientmqClient

ProcessQueue(IMessageQueueClient, String, Func<Boolean>)

Process messages from a single queue.

View Source
Declaration
int ProcessQueue(IMessageQueueClient mqClient, string queueName, Func<bool> doNext = null)
Returns

System.Int32

Parameters
TypeNameDescription
ServiceStack.Messaging.IMessageQueueClientmqClient

| | System.String | queueName | The queue to process

| | System.Func<System.Boolean> | doNext | A predicate on whether to continue processing the next message if any

|

ProcessMessage(IMessageQueueClient, Object)

Process a single message

View Source
Declaration
void ProcessMessage(IMessageQueueClient mqClient, object mqResponse)
Parameters
TypeName
ServiceStack.Messaging.IMessageQueueClientmqClient
System.ObjectmqResponse

GetStats()

Get Current Stats for this Message Handler

View Source
Declaration
IMessageHandlerStats GetStats()
Returns

ServiceStack.Messaging.IMessageHandlerStats