public void TrackNotifier(Type eventType, Address original, INotifyReceivedBrokeredMessages notifier) { var key = CreateKeyFor(eventType, original); notifier.Start(EnqueueMessage, ErrorDequeueingBatch); notifiers.AddOrUpdate(key, notifier, (s, n) => notifier); if (eventType != null) { logger.InfoFormat("Started tracking new notifier for event type {0}, address {1}", eventType.Name, original.ToString()); } else { logger.InfoFormat("Started tracking new notifier for address {0}", original.ToString()); } }
public void TrackNotifier(Type eventType, Address original, INotifyReceivedBrokeredMessages notifier) { var key = CreateKeyFor(eventType, original); notifier.Start(EnqueueMessage, ErrorDequeueingBatch); notifiers.AddOrUpdate(key, notifier, (s, n) => notifier); if (eventType != null) { logger.InfoFormat("Started tracking new notifier for event type {0}, address {1}", eventType.Name, original.ToString()); } else { logger.InfoFormat("Started tracking new notifier for address {0}", original.ToString()); } }
public void Unsubscribe(INotifyReceivedBrokeredMessages notifier) { var subscriptionname = NamingConventions.SubscriptionNamingConvention(config.Settings, notifier.MessageType, config.Settings.EndpointName()); subscriptionCreator.Delete(notifier.Address, subscriptionname); }