示例#1
0
        public ServiceQueueConfiguration(string fullName, ServiceBroker serviceBroker)
            : base(serviceBroker)
		{
            if (this.ServiceBroker.Queues.Contains(fullName))
            {
                ServiceQueue item = this.ServiceBroker.Queues[fullName];


                base.Urn = new Uri(base.Urn.ToString() + "queue/");

                m_Name = item.Name.Substring
                    (base.Urn.ToString().Length, item.Name.Length - base.Urn.ToString().Length);   
                
                m_IsActivationEnabled = item.IsActivationEnabled.ToString();
                m_IsRetentionEnabled = item.IsRetentionEnabled;
                m_IsEnqueueEnabled = item.IsEnqueueEnabled;
                m_ProcedureName = item.ProcedureName;               
                m_MaxReaders = item.MaxReaders;
                m_ActivationExecutionContext = item.ActivationExecutionContext;
            }
		}
        public ServiceQueueConfiguration(string fullName, ServiceBroker serviceBroker)
            : base(serviceBroker)
        {
            if (this.ServiceBroker.Queues.Contains(fullName))
            {
                ServiceQueue item = this.ServiceBroker.Queues[fullName];


                base.Urn = new Uri(base.Urn.ToString() + "queue/");

                m_Name = item.Name.Substring
                             (base.Urn.ToString().Length, item.Name.Length - base.Urn.ToString().Length);

                m_IsActivationEnabled        = item.IsActivationEnabled.ToString();
                m_IsRetentionEnabled         = item.IsRetentionEnabled;
                m_IsEnqueueEnabled           = item.IsEnqueueEnabled;
                m_ProcedureName              = item.ProcedureName;
                m_MaxReaders                 = item.MaxReaders;
                m_ActivationExecutionContext = item.ActivationExecutionContext;
            }
        }