예제 #1
0
        public static void Delete(QueueReference qRef)
        {
            RabbitMQMessagingProvider provider = (RabbitMQMessagingProvider)MessagingProviderLocator.GetProvider();

            using (IMessagingContext context = provider.CreateContext(qRef.Host)) {
                context.Delete(qRef);
            }
        }
예제 #2
0
		public RabbitMQMessageQueue (RabbitMQMessagingProvider provider,
		                             QueueReference qRef, 
		                             bool transactional)
		{
			this.provider = provider;
			this.helper = new MessageFactory (provider);
			this.qRef = qRef;
			this.transactional = transactional;
		}
예제 #3
0
		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);   
		}
예제 #7
0
 public MessageFactory(RabbitMQMessagingProvider provider)
 {
     this.provider = provider;
 }