private static void ConsumerRun() { activeMqConsumer = new ActiveMqConsumer(); activeMqConsumer.uri = "tcp://localhost:61616/"; activeMqConsumer.username = "******"; activeMqConsumer.password = "******"; activeMqConsumer.Start(); }
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"); } }