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

Class RmqMessagePublisher.
Afficher le fichier Open project: iancooper/Paramore Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

PublishMessage() public méthode

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

RequeueMessage() public méthode

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.
Résultat void

RmqMessagePublisher() public méthode

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.
Résultat System