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)); } }
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); } }