コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 private MQTopic(IMQQueueManager queueMgr)
 {
     qMgr = queueMgr;
 }
コード例 #5
0
 public MQQueue(IMQQueueManager queueMgr, string queueName, int openOptions) : this(queueMgr)
 {
     ObjectName  = queueName;
     OpenOptions = openOptions;
     RealOpen();
 }
コード例 #6
0
 public MQQueue(IMQQueueManager queueMgr)
 {
     qMgr = queueMgr;
 }
コード例 #7
0
 public static MQTopic AccessTopic(this IMQQueueManager @this, string topicName, string topicObject, int openAs, int options)
 {
     return(new MQTopic(@this, topicName, topicObject, openAs, options));
 }
コード例 #8
0
 public static IMQQueue AccessQueue(this IMQQueueManager @this, string queueName, int openOptions)
 {
     return(new MQQueue(@this, queueName, openOptions));
 }
コード例 #9
0
 public static void Publish(this IMQQueueManager @this, string topicName, MQMessage message)
 {
     @this.Publish(topicName, message, new MQPutMessageOptions());
 }
コード例 #10
0
 public static IMQPubSub AccessTopicForSubs(this IMQQueueManager @this, string topicName, string topicObject, int options)
 => AccessTopic(@this, topicName, topicObject, MQC.MQTOPIC_OPEN_AS_SUBSCRIPTION, options);
コード例 #11
0
 public MQSubscription(IMQQueueManager queueMgr)
 {
     qMgr = queueMgr;
 }