示例#1
0
 public void HandleSuccessMessage(IDictionary <string, object> meta)
 {
     DequeueMessage();
     if (meta.ContainsKey("fields"))
     {
         // first success
         CurrentResponseCollector?.CollectFields(meta);
     }
     else
     {
         // second success
         // before summary method is called
         CurrentResponseCollector?.CollectSummary(meta);
     }
     CurrentResponseCollector?.DoneSuccess();
     _logger?.Debug("S: ", new SuccessMessage(meta));
 }
示例#2
0
        public void HandleSuccessMessage(IDictionary <string, object> meta)
        {
            DequeueMessage();
            if (meta.ContainsKey(Bookmark.BookmarkKey))
            {
                CurrentResponseCollector?.CollectBookmark(meta);
            }

            if (meta.ContainsKey("fields"))
            {
                // first success
                CurrentResponseCollector?.CollectFields(meta);
            }
            else
            {
                // second success
                // before summary method is called
                CurrentResponseCollector?.CollectSummary(meta);
            }
            CurrentResponseCollector?.DoneSuccess();
            LogSuccess(meta);
        }