Example #1
0
 public Task Export(DateTime cursor)
 {
     using (_logger.Scope("Exporting service status."))
     {
         var rootComponent = _componentExporter.Export();
         var recentEvents  = _eventExporter.Export(cursor);
         return(_serializer.Serialize(cursor, rootComponent, recentEvents));
     }
 }
Example #2
0
        public async Task Export(DateTime cursor)
        {
            using (_logger.Scope("Exporting service status."))
            {
                var rootComponent = _componentExporter.Export();
                var recentEvents  = _eventExporter.Export(cursor);

                var lastUpdated = await _cursor.Get(StatusUpdater.LastUpdatedCursorName);

                await _serializer.Serialize(cursor, lastUpdated, rootComponent, recentEvents);
            }
        }