Esempio n. 1
0
 public AzureServiceBusClient(string emiter, IDispatcherSerializer dispatcherSerializer, IQueueClient queueClient,
                              AzureServiceBusClientConfiguration configuration)
 {
     if (string.IsNullOrWhiteSpace(emiter))
     {
         throw new ArgumentNullException(nameof(emiter));
     }
     _dispatcherSerializer = dispatcherSerializer ?? throw new ArgumentNullException(nameof(dispatcherSerializer));
     _emiter        = emiter;
     _configuration = configuration;
     _queueClient   = queueClient;
 }
Esempio n. 2
0
 public AzureServiceBusClient(string emiter, AzureServiceBusClientConfiguration configuration)
     : this(emiter : emiter, dispatcherSerializer : new JsonDispatcherSerializer(), queueClient : AzureServiceBusContext.AzureQueueClient,
            configuration : configuration)
 {
 }