Esempio n. 1
0
 public EventPublisher(string serviceBusConnectionString, string topic)
 {
     _serviceBusClient = new ServiceBusClient(serviceBusConnectionString);
     MessageQueue = new BlockingCollection<IMessageContext>();
     _logger = IoCFactory.Resolve<ILoggerFactory>().Create(this.GetType());
     _topic = topic;
 }
Esempio n. 2
0
 public EventSubscriber(string serviceBusConnectionString,
     IHandlerProvider handlerProvider,
     string subscriptionName,
     params string[] topics)
     : base(handlerProvider, subscriptionName)
 {
     _serviceBusClient = new ServiceBusClient(serviceBusConnectionString);
     _handlerProvider = handlerProvider;
     _topics = topics;
     _subscriptionName = subscriptionName;
     _consumeWorkTasks = new List<Task>();
 }