internal WsListener(WsQueueManager qmOwner, string name)
        {
            Debug.Assert(name != null);
            Debug.Assert(qmOwner != null);

            QueueManager     = qmOwner;
            Name             = name.Trim();
            IsSystemListener = WsSystemObjectNameFilter.IsSystemListener(name);
        }
Exemple #2
0
        internal WsChannel(WsQueueManager qmOwner, string name)
        {
            Debug.Assert(name != null);
            Debug.Assert(qmOwner != null);

            QueueManager    = qmOwner;
            Name            = name.Trim();
            IsSystemChannel = WsSystemObjectNameFilter.IsSystemChannel(name);
            _type           = WsChannelType.Unknown;
        }
Exemple #3
0
        internal WsQueue(WsQueueManager qmOwner, string queueName)
        {
            Debug.Assert(queueName != null);
            Debug.Assert(qmOwner != null);

            QueueManager       = qmOwner;
            Name               = queueName.Trim();
            ExtendedProperties = new ExpandoObject();
            DumpEngine         = new WsDump2(this);
            IsSystemQueue      = WsSystemObjectNameFilter.IsSystemQueue(queueName);
        }
        internal static WsQueueManager Clone(WsQueueManager from)
        {
            var props = (WsConnectionProperties)from.ConnectionProperties;

            if (props.IsLocal)
            {
                var newQm = new MQQueueManager(from.Name);
                return(new WsQueueManager(newQm, props));
            }
            else
            {
                var newQm = new MQQueueManager(from.Name, props.CoreData);
                return(new WsQueueManager(newQm, props));
            }
        }
        internal WsObjectProvider(WsQueueManager qm, IObjectNameFilter filter)
        {
            Filter       = filter ?? throw new ArgumentNullException(nameof(filter));
            QueueManager = qm ?? throw new ArgumentNullException(nameof(qm));

            if (filter is StaticQueueList)
            {
                SupportChannels  = false;
                SupportListeners = false;
            }
            else
            {
                SupportChannels  = true;
                SupportListeners = true;
            }
        }