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 WinodwsServiceBusTopicPublisherEndpointManager(WindowsServiceBusTopicPublisherEndpoint 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; }