Skip to main content

RabbitMqQueueClient

Assembly: ServiceStack.RabbitMq.dll
View Source
Declaration
public class RabbitMqQueueClient : RabbitMqProducer, IOneWayClient, IMessageQueueClient, IMessageProducer, IDisposable

Inherited Properties

Channel

View Source
Declaration
public IModel Channel { get; }

Connection

View Source
Declaration
public IConnection Connection { get; }

GetMessageFilter

View Source
Declaration
public Action<string, BasicGetResult> GetMessageFilter { get; set; }

OnPublishedCallback

View Source
Declaration
public Action OnPublishedCallback { get; set; }

PrefetchCount

View Source
Declaration
public ushort PrefetchCount { get; set; }

PublishMessageFilter

View Source
Declaration
public Action<string, IBasicProperties, IMessage> PublishMessageFilter { get; set; }

RetryCount

View Source
Declaration
public int RetryCount { get; set; }

Methods

Notify(String, IMessage)

View Source
Declaration
public virtual void Notify(string queueName, IMessage message)
Parameters
TypeName
System.StringqueueName
ServiceStack.Messaging.IMessagemessage

Get<T>(String, Nullable<TimeSpan>)

View Source
Declaration
public virtual IMessage<T> Get<T>(string queueName, TimeSpan? timeOut = null)
Returns

ServiceStack.Messaging.IMessage<T>

Parameters
TypeName
System.StringqueueName
System.Nullable<System.TimeSpan>timeOut
Type Parameters
  • T

GetAsync<T>(String)

View Source
Declaration
public virtual IMessage<T> GetAsync<T>(string queueName)
Returns

ServiceStack.Messaging.IMessage<T>

Parameters
TypeName
System.StringqueueName
Type Parameters
  • T

Ack(IMessage)

View Source
Declaration
public virtual void Ack(IMessage message)
Parameters
TypeName
ServiceStack.Messaging.IMessagemessage

Nak(IMessage, Boolean, Exception)

View Source
Declaration
public virtual void Nak(IMessage message, bool requeue, Exception exception = null)
Parameters
TypeName
ServiceStack.Messaging.IMessagemessage
System.Booleanrequeue
System.Exceptionexception

CreateMessage<T>(Object)

View Source
Declaration
public virtual IMessage<T> CreateMessage<T>(object mqResponse)
Returns

ServiceStack.Messaging.IMessage<T>

Parameters
TypeName
System.ObjectmqResponse
Type Parameters
  • T

GetTempQueueName()

View Source
Declaration
public virtual string GetTempQueueName()
Returns

System.String

Inherited Methods

Dispose()

View Source
Declaration
public virtual void Dispose()

GetMessage(String, Boolean)

View Source
Declaration
public virtual BasicGetResult GetMessage(string queueName, bool noAck)
Returns

BasicGetResult

Parameters
TypeName
System.StringqueueName
System.BooleannoAck

Publish(String, IMessage)

View Source
Declaration
public virtual void Publish(string queueName, IMessage message)
Parameters
TypeName
System.StringqueueName
ServiceStack.Messaging.IMessagemessage

Publish(String, IMessage, String)

View Source
Declaration
public virtual void Publish(string queueName, IMessage message, string exchange)
Parameters
TypeName
System.StringqueueName
ServiceStack.Messaging.IMessagemessage
System.Stringexchange

Publish<T>(T)

View Source
Declaration
public virtual void Publish<T>(T messageBody)
Parameters
TypeName
<T>messageBody
Type Parameters
  • T

Publish<T>(IMessage<T>)

View Source
Declaration
public virtual void Publish<T>(IMessage<T> message)
Parameters
TypeName
ServiceStack.Messaging.IMessage<T>message
Type Parameters
  • T

PublishMessage(String, String, IBasicProperties, Byte[])

View Source
Declaration
public virtual void PublishMessage(string exchange, string routingKey, IBasicProperties basicProperties, byte[] body)
Parameters
TypeName
System.Stringexchange
System.StringroutingKey
IBasicPropertiesbasicProperties
System.Byte[]body

SendAllOneWay(IEnumerable<Object>)

View Source
Declaration
public virtual void SendAllOneWay(IEnumerable<object> requests)
Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Object>requests

SendOneWay(Object)

View Source
Declaration
public virtual void SendOneWay(object requestDto)
Parameters
TypeName
System.ObjectrequestDto

SendOneWay(String, Object)

View Source
Declaration
public virtual void SendOneWay(string queueName, object requestDto)
Parameters
TypeName
System.StringqueueName
System.ObjectrequestDto

Implements