Пример #1
0
        protected WindowsServiceBusQueueClient(WindowsServiceBusQueueEndpoint endpoint,
                                             IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
                throw new ArgumentNullException("endpoint");

            endpoint.Validate();

            try
            {
                if (NsManager.QueueExists(endpoint.QueueName) == false)
                    NsManager.CreateQueue(endpoint.QueueName);

                QueueClient = QueueClient.CreateFromConnectionString(sbConfiguration.ConnectionString,
                                                                     endpoint.QueueName);
            }
            catch (Exception ex)
            {
                throw new MessagingException(
                    String.Format(
                        "An error occurred while attempting to access the specified Windows service bus queue [{0}]. See inner exception for more details.",
                        endpoint.QueueName),
                    ex);
            }
        }
        protected WindowsServiceBusQueueClient(WindowsServiceBusQueueEndpoint endpoint,
                                               IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint");
            }

            endpoint.Validate();

            try
            {
                if (NsManager.QueueExists(endpoint.QueueName) == false)
                {
                    NsManager.CreateQueue(endpoint.QueueName);
                }

                QueueClient = QueueClient.CreateFromConnectionString(sbConfiguration.ConnectionString,
                                                                     endpoint.QueueName);
            }
            catch (Exception ex)
            {
                throw new MessagingException(
                          String.Format(
                              "An error occurred while attempting to access the specified Windows service bus queue [{0}]. See inner exception for more details.",
                              endpoint.QueueName),
                          ex);
            }
        }
Пример #3
0
        public WindowsServiceBusTopicPublisherClient(WindowsServiceBusTopicPublisherEndpoint endpoint,
                                                     IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint");
            }

            endpoint.Validate();

            try
            {
                if (NsManager.TopicExists(endpoint.TopicName) == false)
                {
                    NsManager.CreateTopic(endpoint.TopicName);
                }

                topicClient = TopicClient.CreateFromConnectionString(sbConfiguration.ConnectionString,
                                                                     endpoint.TopicName);
            }
            catch (Exception ex)
            {
                throw new MessagingException(
                          String.Format(
                              "An error occurred while attempting to access the specified Windows service bus topic [{0}]. See inner exception for more details.",
                              endpoint.TopicName),
                          ex);
            }
        }
        public WindowsServiceBusSubscriptionSubscriberEndpoint(IWindowsServiceBusConfiguration sbConfiguration)
        {
            if (sbConfiguration == null)
                throw new ArgumentNullException("sbConfiguration");

            sbConfiguration.Validate();

            this.sbConfiguration = sbConfiguration;
        }
        public WindowsServiceBusQueuePublisherEndpoint(IWindowsServiceBusConfiguration sbConfiguration)
        {
            if (sbConfiguration == null)
            {
                throw new ArgumentNullException("sbConfiguration");
            }

            sbConfiguration.Validate();

            this.sbConfiguration = sbConfiguration;
        }
        protected WindowsServiceBusQueueEndpointManager(WindowsServiceBusQueueEndpoint endpoint,
                                                      IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
                throw new ArgumentNullException("endpoint");

            endpoint.Validate();

            this.endpoint = endpoint;
        }
        public WinodwsServiceBusTopicPublisherEndpointManager(WindowsServiceBusTopicPublisherEndpoint endpoint,
                                                              IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
                throw new ArgumentNullException("endpoint");

            endpoint.Validate();

            this.endpoint = endpoint;
        }
Пример #8
0
        protected WindowsServiceBusQueueEndpointManager(WindowsServiceBusQueueEndpoint endpoint,
                                                        IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint");
            }

            endpoint.Validate();

            this.endpoint = endpoint;
        }
Пример #9
0
        public WinodwsServiceBusTopicPublisherEndpointManager(WindowsServiceBusTopicPublisherEndpoint endpoint,
                                                              IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint");
            }

            endpoint.Validate();

            this.endpoint = endpoint;
        }
        public AzureServiceBusSubscriptionSubscriberEndpointManager(
            WindowsServiceBusSubscriptionSubscriberEndpoint endpoint, IWindowsServiceBusConfiguration sbConfiguration)
            : base(sbConfiguration)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint");
            }

            endpoint.Validate();

            this.endpoint = endpoint;
        }
        protected WindowsServiceBusEndpointManager(IWindowsServiceBusConfiguration sbConfiguration)
        {
            if (sbConfiguration == null)
                throw new ArgumentNullException("sbConfiguration");

            sbConfiguration.Validate();

            try
            {
                NsManager = NamespaceManager.CreateFromConnectionString(sbConfiguration.ConnectionString);
            }
            catch (Exception ex)
            {
                throw new MessagingException(
                    "An error occurred while attempting to access the specified Windows service bus. See inner exception for more details.",
                    ex);
            }
        }
Пример #12
0
        protected WindowsServiceBusClient(IWindowsServiceBusConfiguration sbConfiguration)
        {
            if (sbConfiguration == null)
            {
                throw new ArgumentNullException("sbConfiguration");
            }

            sbConfiguration.Validate();

            try
            {
                NsManager = NamespaceManager.CreateFromConnectionString(sbConfiguration.ConnectionString);
            }
            catch (Exception ex)
            {
                throw new MessagingException(
                          "An error occurred while attempting to access the specified Windows service bus. See inner exception for more details.",
                          ex);
            }
        }
 public WindowsServiceBusQueueSubscriberClient(WindowsServiceBusQueueSubscriberEndpoint endpoint,
                                               IWindowsServiceBusConfiguration sbConfiguration)
     : base(endpoint, sbConfiguration)
 {
 }
 public WindowsServiceBusQueuePublisherEndpointManager(WindowsServiceBusQueuePublisherEndpoint endpoint,
                                                       IWindowsServiceBusConfiguration sbConfiguration)
     : base(endpoint, sbConfiguration)
 {
 }
 public WindowsServiceBusQueuePublisherEndpointManager(WindowsServiceBusQueuePublisherEndpoint endpoint,
                                                       IWindowsServiceBusConfiguration sbConfiguration)
     : base(endpoint, sbConfiguration)
 {
 }