1 write to SessionDataCollectionContext
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
DataCollector\DataCollectionEnvironmentContext.cs (1)
32
SessionDataCollectionContext
= sessionDataCollectionContext;
29 references to SessionDataCollectionContext
Microsoft.TestPlatform.Extensions.BlameDataCollector (21)
BlameCollector.cs (21)
236
_logger.LogWarning(_context.
SessionDataCollectionContext
, message);
266
Action<string> logWarning = m => _logger.LogWarning(_context.
SessionDataCollectionContext
, m);
272
_logger.LogError(_context.
SessionDataCollectionContext
, $"Blame: Creating hang dump failed with error.", ex);
287
var fileTransferInformation = new FileTransferInformation(_context.
SessionDataCollectionContext
, dumpFile, true, _fileHelper);
305
_logger.LogError(_context.
SessionDataCollectionContext
, $"Blame: Collecting hang dump failed with error.", ex);
340
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
346
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
366
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, [Constants.TrueConfigurationValue, Constants.FalseConfigurationValue]));
379
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType))));
386
_logger.LogWarning(_context.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name));
412
_logger.LogWarning(_context.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedValueForInactivityTimespanValue, attribute.Value));
426
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(HangDumpType))));
442
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType))));
449
_logger.LogWarning(_context.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name));
524
var fti = new FileTransferInformation(_context.
SessionDataCollectionContext
, filepath, true);
531
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.NotGeneratingSequenceFile);
546
var fileTransferInformation = new FileTransferInformation(_context.
SessionDataCollectionContext
, dumpFile, true);
572
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
603
var fileTranferInformation = new FileTransferInformation(_context.
SessionDataCollectionContext
, dumpFileNameFullPath, true);
652
Action<string> logWarning = m => _logger.LogWarning(_context.
SessionDataCollectionContext
, m);
740
_logger.LogWarning(_context.
SessionDataCollectionContext
, $"VSTEST_DUMP_PATH is specified. Dump files will be saved in: {dumpPath}, and won't be added to attachments.");
Microsoft.VisualStudio.TestPlatform.Common (8)
DataCollection\DataCollectionManager.cs (8)
242
var endEvent = new SessionEndEventArgs(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
);
290
var testHostLaunchedEventArgs = new TestHostLaunchedEventArgs(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
, processId);
309
sessionStartEventArgs.Context = new DataCollectionContext(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
.SessionId);
333
var context = new DataCollectionContext(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
.SessionId, testCaseStartEventArgs.TestElement);
357
var context = new DataCollectionContext(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
.SessionId, testCaseEndEventArgs.TestElement);
578
dataCollectorInfo.Logger.LogError(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorInitializationError, dataCollectorConfig.FriendlyName, ex));
675
_dataCollectionEnvironmentContext.
SessionDataCollectionContext
,
735
dataCollectionWrapper.Logger.LogError(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
, message);