public static void Put(this IMQQueueManager @this, string queueName, MQMessage message, MQPutMessageOptions pmo) { var od = new MQObjectDescriptor { ObjectType = MQC.MQOT_Q, ObjectName = queueName }; @this.Put1(od, message, pmo); }
public static void Publish(this IMQQueueManager @this, string topicName, MQMessage message, MQPutMessageOptions pmo) { var od = new MQObjectDescriptor { ObjectType = MQC.MQOT_TOPIC, ObjectName = string.Empty, Version = MQC.MQOD_VERSION_4 }; od.ObjectString.VSString = topicName; @this.Put1(od, message, pmo); }