Esempio n. 1
0
 private static void SendAlert(QueueConfiguration queue, SBMessageCounter counter, string alerterTypeFromConfig)
 {
     Type alerterType = Type.GetType(String.Format("ServiceBusMonitoring.Alerters.{0}", alerterTypeFromConfig));
     IAlerter alerter = (IAlerter)(Activator.CreateInstance(alerterType));
     alerter.SetMessageCount(counter.MessageCount);
     alerter.SetQueueName(queue.QueueName);
     alerter.SetSBNamespace(queue.SBNamespace);
     alerter.SetThreshold(queue.Threshold);
     alerter.Send();
 }
 public void Add(QueueConfiguration queueConfig)
 {
     BaseAdd(queueConfig);
 }
 public void Remove(QueueConfiguration queueConfig)
 {
     BaseRemove(queueConfig.Id);
 }