Ejemplo n.º 1
0
 /// <summary>
 /// MQ receive
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonReceive_Click(object sender, EventArgs e)
 {
     MQReceiver receiver = new MQReceiver();
     MQConnection mqcon = new MQConnection();
     mqcon.Init("1", ConfigurationSettings.AppSettings["MQHOST"], int.Parse(ConfigurationSettings.AppSettings["MQPORT"]), ConfigurationSettings.AppSettings["MQName"]);
     mqcon.Open();
     receiver.Init(ConfigurationSettings.AppSettings["Test_2591"], mqcon);
     receiver.RegisterMessageReceiver(MessageReceiver_Callback);
 }