示例#1
0
        private void ReadObjectsAndPublishMessage()
        {
            var objects = _objectReader.ReadObjects();
            var message = JsonConvert.SerializeObject(objects, Formatting.Indented);

            _messagePublisher.PublishMessage(message);
            ResultsPublished?.Invoke(this, new EventArgs());
        }
示例#2
0
 public ICollection <JObject> ReadObjects()
 {
     return(_reader.ReadObjects());
 }