Esempio n. 1
0
 private static void ConsumerRun()
 {
     activeMqConsumer          = new ActiveMqConsumer();
     activeMqConsumer.uri      = "tcp://localhost:61616/";
     activeMqConsumer.username = "******";
     activeMqConsumer.password = "******";
     activeMqConsumer.Start();
 }
Esempio n. 2
0
        private void btnConnect_Click(object sender, EventArgs e)
        {
            try
            {
                if (!GlobalFunction.CheckControlInput(txtURI, "URI", 0, false))
                {
                    return;
                }

                activeMqConsumer = new ActiveMqConsumer();

                activeMqConsumer.uri      = txtURI.Text;
                activeMqConsumer.username = txtUserName.Text;
                activeMqConsumer.password = txtPassword.Text;

                activeMqConsumer.Start();
            }
            catch (System.Exception ex)
            {
                GlobalFunction.MsgBoxException(ex.Message, "btnConnect_Click");
            }
        }