MessageQueueClientFactory
Assembly: ServiceStack.Client.dll
View Source
Declaration
public class MessageQueueClientFactory : IMessageQueueClientFactory, IDisposable
Methods
CreateMessageQueueClient()
View Source
Declaration
public IMessageQueueClient CreateMessageQueueClient()
Returns
ServiceStack.Messaging.IMessageQueueClient
PublishMessage<T>(String, IMessage<T>)
View Source
Declaration
public void PublishMessage<T>(string queueName, IMessage<T> message)
Parameters
Type | Name |
---|---|
System.String | queueName |
ServiceStack.Messaging.IMessage<T> | message |
Type Parameters
T
PublishMessage(String, Byte[])
View Source
Declaration
public void PublishMessage(string queueName, byte[] messageBytes)
Parameters
Type | Name |
---|---|
System.String | queueName |
System.Byte[] | messageBytes |
GetMessageAsync(String)
Returns the next message from queueName or null if no message
View Source
Declaration
public byte[] GetMessageAsync(string queueName)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | queueName |
Dispose()
View Source
Declaration
public void Dispose()
Events
MessageReceived
View Source
Declaration
public event EventHandler<EventArgs> MessageReceived
Event Type
System.EventHandler<System.EventArgs>
Implements
- ServiceStack.Messaging.IMessageQueueClientFactory
System.IDisposable