protected virtual void DoPublish()
{
List<IWoopsaNotification> notificationsList;
lock (_lock)
{
if (_notifications.Count > 0)
{
notificationsList = _notifications;
_notifications = new List<IWoopsaNotification>();
}
else
notificationsList = null;
}
if (notificationsList != null)
Channel.SubscriptionPublishNotifications(this, notificationsList);
}