protected AzureServiceBusWatcher(string name, AzureServiceBusWatcherConfiguration configuration, string group)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException("Watcher name cannot be empty.");
            }
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration), "Azure Service Bus Watcher configuration has not been provided.");
            }

            Name           = name;
            _configuration = configuration;
            Group          = group;
        }
Exemple #2
0
 protected Configurator(AzureServiceBusWatcherConfiguration configuration) : base(configuration)
 {
 }
Exemple #3
0
 protected Configurator(string url)
 {
     Configuration = new AzureServiceBusWatcherConfiguration(url);
 }
Exemple #4
0
 public Default(AzureServiceBusWatcherConfiguration configuration) : base(configuration)
 {
     SetInstance(this);
 }
 public static AzureServiceBusWatcher Create(string name,
                                             AzureServiceBusWatcherConfiguration configuration, string group = null)
 => new AzureServiceBusWatcher(name, configuration, group);