Woopsa.BaseWoopsaSubscriptionServiceSubscription.DoPublish C# (CSharp) Method

DoPublish() protected method

protected DoPublish ( ) : void
return void
        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);
        }