public void nsm_mf_and_topic()
		{
			var tp = TestConfigFactory.CreateTokenProvider();
			var mf = TestConfigFactory.CreateMessagingFactory(tp);
			
			desc = new QueueDescriptionImpl("to-be-drained");
			nm = TestConfigFactory.CreateNamespaceManager(mf, tp);

			client = mf.NewSenderAsync(nm, desc).Result;

			// sanity checks; I can now place a message in the queue
			client.Send(new BrokeredMessage(new A("My Contents", new byte[] {1, 2, 3})));
		}
Beispiel #2
0
        public void nsm_mf_and_topic()
        {
            var tp = TestConfigFactory.CreateTokenProvider();
            var mf = TestConfigFactory.CreateMessagingFactory(tp);

            desc = new QueueDescriptionImpl("to-be-drained");
            nm   = TestConfigFactory.CreateNamespaceManager(mf, tp);

            client = mf.NewSenderAsync(nm, desc).Result;

            // sanity checks; I can now place a message in the queue
            client.Send(new BrokeredMessage(new A("My Contents", new byte[] { 1, 2, 3 })));
        }