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); }
public MQTopic(IMQQueueManager queueMgr, string topicName, string topicObject, int openAs, int options) : this(queueMgr) { _topicName = topicName; ObjectName = topicObject; OpenOptions = options; if (openAs == MQC.MQTOPIC_OPEN_AS_SUBSCRIPTION) { OpenForSubscription(); } else { OpenForPublication(); } }
private MQTopic(IMQQueueManager queueMgr) { qMgr = queueMgr; }
public MQQueue(IMQQueueManager queueMgr, string queueName, int openOptions) : this(queueMgr) { ObjectName = queueName; OpenOptions = openOptions; RealOpen(); }
public MQQueue(IMQQueueManager queueMgr) { qMgr = queueMgr; }
public static MQTopic AccessTopic(this IMQQueueManager @this, string topicName, string topicObject, int openAs, int options) { return(new MQTopic(@this, topicName, topicObject, openAs, options)); }
public static IMQQueue AccessQueue(this IMQQueueManager @this, string queueName, int openOptions) { return(new MQQueue(@this, queueName, openOptions)); }
public static void Publish(this IMQQueueManager @this, string topicName, MQMessage message) { @this.Publish(topicName, message, new MQPutMessageOptions()); }
public static IMQPubSub AccessTopicForSubs(this IMQQueueManager @this, string topicName, string topicObject, int options) => AccessTopic(@this, topicName, topicObject, MQC.MQTOPIC_OPEN_AS_SUBSCRIPTION, options);
public MQSubscription(IMQQueueManager queueMgr) { qMgr = queueMgr; }