public static void Delete(QueueReference qRef) { RabbitMQMessagingProvider provider = (RabbitMQMessagingProvider)MessagingProviderLocator.GetProvider(); using (IMessagingContext context = provider.CreateContext(qRef.Host)) { context.Delete(qRef); } }
public RabbitMQMessageQueue (RabbitMQMessagingProvider provider, QueueReference qRef, bool transactional) { this.provider = provider; this.helper = new MessageFactory (provider); this.qRef = qRef; this.transactional = transactional; }
public RabbitMQMessageQueue (RabbitMQMessagingProvider provider, bool transactional) : this (provider, QueueReference.DEFAULT, transactional) { }
public MessageFactory (RabbitMQMessagingProvider provider) { this.provider = provider; }
public void GetMessageQueue () { IMessagingProvider p = new RabbitMQMessagingProvider (); IMessageQueue q = p.CreateMessageQueue (QueueReference.DEFAULT, true); Assert.IsNotNull (q); }
public void CreateMessage () { IMessagingProvider p = new RabbitMQMessagingProvider (); IMessage m = p.CreateMessage (); Assert.IsNotNull (m); }
public MessageFactory(RabbitMQMessagingProvider provider) { this.provider = provider; }