C# Class paramore.brighter.commandprocessor.messaginggateway.rmq.RmqMessagePublisher

Class RmqMessagePublisher.
Mostrar archivo Open project: iancooper/Paramore Class Usage Examples

Public Methods

Method Description
PublishMessage ( Message message, int delayMilliseconds ) : void

Publishes the message.

RequeueMessage ( Message message, string queueName, int delayMilliseconds ) : void

Requeues the message.

RmqMessagePublisher ( IModel channel, string exchangeName ) : System

Initializes a new instance of the RmqMessagePublisher class.

Private Methods

Method Description
CreateBasicProperties ( System.Guid id, System.DateTime timeStamp, string type, string contentType, object>.IDictionary headers = null ) : IBasicProperties

Method Details

PublishMessage() public method

Publishes the message.
public PublishMessage ( Message message, int delayMilliseconds ) : void
message System.Globalization.Message The message.
delayMilliseconds int The delay in ms.
return void

RequeueMessage() public method

Requeues the message.
public RequeueMessage ( Message message, string queueName, int delayMilliseconds ) : void
message System.Globalization.Message The message.
queueName string The queue name.
delayMilliseconds int Delay in ms.
return void

RmqMessagePublisher() public method

Initializes a new instance of the RmqMessagePublisher class.
/// channel /// or /// exchangeName ///
public RmqMessagePublisher ( IModel channel, string exchangeName ) : System
channel IModel The channel.
exchangeName string Name of the exchange.
return System