private void ReadObjectsAndPublishMessage() { var objects = _objectReader.ReadObjects(); var message = JsonConvert.SerializeObject(objects, Formatting.Indented); _messagePublisher.PublishMessage(message); ResultsPublished?.Invoke(this, new EventArgs()); }
public ICollection <JObject> ReadObjects() { return(_reader.ReadObjects()); }