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)
235
_logger.LogWarning(_context.
SessionDataCollectionContext
, message);
261
Action<string> logWarning = m => _logger.LogWarning(_context.
SessionDataCollectionContext
, m);
267
_logger.LogError(_context.
SessionDataCollectionContext
, $"Blame: Creating hang dump failed with error.", ex);
282
var fileTransferInformation = new FileTransferInformation(_context.
SessionDataCollectionContext
, dumpFile, true, _fileHelper);
300
_logger.LogError(_context.
SessionDataCollectionContext
, $"Blame: Collecting hang dump failed with error.", ex);
335
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
341
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
361
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, [Constants.TrueConfigurationValue, Constants.FalseConfigurationValue]));
374
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType))));
381
_logger.LogWarning(_context.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name));
407
_logger.LogWarning(_context.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedValueForInactivityTimespanValue, attribute.Value));
421
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(HangDumpType))));
437
_logger.LogWarning(_context.
SessionDataCollectionContext
, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType))));
444
_logger.LogWarning(_context.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name));
519
var fti = new FileTransferInformation(_context.
SessionDataCollectionContext
, filepath, true);
526
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.NotGeneratingSequenceFile);
541
var fileTransferInformation = new FileTransferInformation(_context.
SessionDataCollectionContext
, dumpFile, true);
567
_logger.LogWarning(_context.
SessionDataCollectionContext
, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
598
var fileTranferInformation = new FileTransferInformation(_context.
SessionDataCollectionContext
, dumpFileNameFullPath, true);
647
Action<string> logWarning = m => _logger.LogWarning(_context.
SessionDataCollectionContext
, m);
732
_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);
305
sessionStartEventArgs.Context = new DataCollectionContext(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
.SessionId);
321
var context = new DataCollectionContext(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
.SessionId, testCaseStartEventArgs.TestElement);
337
var context = new DataCollectionContext(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
.SessionId, testCaseEndEventArgs.TestElement);
558
dataCollectorInfo.Logger.LogError(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
, string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorInitializationError, dataCollectorConfig.FriendlyName, ex));
655
_dataCollectionEnvironmentContext.
SessionDataCollectionContext
,
715
dataCollectionWrapper.Logger.LogError(_dataCollectionEnvironmentContext.
SessionDataCollectionContext
, message);