public string FetchAndResetPreviousHttpTelemetryContent() { lock (_mostRecentStoppedApiEventLockObj) { var httpTelemetryContent = new HttpTelemetryContent(_mostRecentStoppedApiEvent); _mostRecentStoppedApiEvent = null; return(httpTelemetryContent.GetCsvAsPrevious()); } }
public string FetchCurrentHttpTelemetryContent(string currentRequestCorrelationId) { foreach (var kvp in _eventsInProgress) { if (string.Compare(kvp.Key.CorrelationId, currentRequestCorrelationId, StringComparison.OrdinalIgnoreCase) == 0) { var httpTelemetryContent = new HttpTelemetryContent(kvp.Value); return(httpTelemetryContent.GetCsvAsCurrent()); } } return(string.Empty); }