コード例 #1
0
 def _pop_triggered_statuschanges(self, result: ua.PublishResult):
     """Append all enqueued status changes to the given `PublishResult` and clear the queue."""
     if self._triggered_statuschanges:
         notif = ua.StatusChangeNotification()
         notif.Status = self._triggered_statuschanges.pop(0)
         result.NotificationMessage.NotificationData.append(notif)
         self.logger.debug("sending event notification %s", notif.Status)
コード例 #2
0
 def _pop_triggered_statuschanges(self, result):
     if self._triggered_statuschanges:
         notif = ua.StatusChangeNotification()
         notif.Status = self._triggered_statuschanges.pop(0)
         result.NotificationMessage.NotificationData.append(notif)
         self.logger.debug("sending event notification %s", notif.Status)