RabbitMqProducer
Assembly: ServiceStack.RabbitMq.dll
View Source
Declaration
public class RabbitMqProducer : IMessageProducer, IDisposable, IOneWayClient
Properties
RetryCount
View Source
Declaration
public int RetryCount { get; set; }
OnPublishedCallback
View Source
Declaration
public Action OnPublishedCallback { get; set; }
PublishMessageFilter
View Source
Declaration
public Action<string, IBasicProperties, IMessage> PublishMessageFilter { get; set; }
GetMessageFilter
View Source
Declaration
public Action<string, BasicGetResult> GetMessageFilter { get; set; }
PrefetchCount
View Source
Declaration
public ushort PrefetchCount { get; set; }
Connection
View Source
Declaration
public IConnection Connection { get; }
Channel
View Source
Declaration
public IModel Channel { get; }
Fields
Log
View Source
Declaration
public static ILog Log
msgFactory
View Source
Declaration
protected readonly RabbitMqMessageFactory msgFactory
Methods
Publish<T>(T)
View Source
Declaration
public virtual void Publish<T>(T messageBody)
Parameters
Type | Name |
---|---|
<T> | messageBody |
Type Parameters
T
Publish<T>(IMessage<T>)
View Source
Declaration
public virtual void Publish<T>(IMessage<T> message)
Parameters
Type | Name |
---|---|
ServiceStack.Messaging.IMessage<T> | message |
Type Parameters
T
Publish(String, IMessage)
View Source
Declaration
public virtual void Publish(string queueName, IMessage message)
Parameters
Type | Name |
---|---|
System.String | queueName |
ServiceStack.Messaging.IMessage | message |
SendOneWay(Object)
View Source
Declaration
public virtual void SendOneWay(object requestDto)
Parameters
Type | Name |
---|---|
System.Object | requestDto |
SendOneWay(String, Object)
View Source
Declaration
public virtual void SendOneWay(string queueName, object requestDto)
Parameters
Type | Name |
---|---|
System.String | queueName |
System.Object | requestDto |
SendAllOneWay(IEnumerable<Object>)
View Source
Declaration
public virtual void SendAllOneWay(IEnumerable<object> requests)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requests |
Publish(String, IMessage, String)
View Source
Declaration
public virtual void Publish(string queueName, IMessage message, string exchange)
Parameters
Type | Name |
---|---|
System.String | queueName |
ServiceStack.Messaging.IMessage | message |
System.String | exchange |
PublishMessage(String, String, IBasicProperties, Byte[])
View Source
Declaration
public virtual void PublishMessage(string exchange, string routingKey, IBasicProperties basicProperties, byte[] body)
Parameters
Type | Name |
---|---|
System.String | exchange |
System.String | routingKey |
IBasicProperties | basicProperties |
System.Byte[] | body |
GetMessage(String, Boolean)
View Source
Declaration
public virtual BasicGetResult GetMessage(string queueName, bool noAck)
Returns
BasicGetResult
Parameters
Type | Name |
---|---|
System.String | queueName |
System.Boolean | noAck |
Dispose()
View Source
Declaration
public virtual void Dispose()
Implements
- ServiceStack.Messaging.IMessageProducer
System.IDisposable
- ServiceStack.IOneWayClient