Как включить трафик parrot, связанный с MQ, в приложение C#?
Я хочу включить трафик parrot, связанный с MQ, в приложение c#.
В настоящее время я использую интерфейс MQ и подключаюсь с учетными данными, как настроено.
После чего ставим запрос и хотим получить ответ с помощью трафика parrot .
Что я уже пробовал:
private void btnConnect_Click(object sender, System.EventArgs e)
{
string strQueueManagerName;
string strQueueName;
string strChannelInfo;
//TODO
//PUT Valication Code Here
strQueueManagerName =txtQueueManagerName.Text;
strQueueName =txtQueueName.Text;
strChannelInfo = txtChannelInfo.Text;
lblConnect.Text = myMQ.ConnectMQ(strQueueManagerName, strQueueName, strChannelInfo);
}
Call the ConnectMQ method for connecting to the define Queue of the MQ Server.
The btnWriteMsg_Click Method:
private void btnWriteMsg_Click(object sender, System.EventArgs e)
{
txtPUT.Text = myMQ.WriteMsg(txtPUT.Text.ToString());
}
This method for sends the input message to the define Queue of the MQ Server.
The btnReadMsg_Click Method:
private void btnReadMsg_Click(object sender, System.EventArgs e)
{
txtGET.Text = myMQ.ReadMsg();
}