1 write to _context
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
138
_context
= environmentContext;
28 references to _context
Microsoft.TestPlatform.Extensions.BlameDataCollector (28)
BlameCollector.cs (28)
216
TPDebug.Assert(_logger != null &&
_context
!= null && _dataCollectionSink != null, "Initialize must be called before calling this method");
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);
337
TPDebug.Assert(_logger != null &&
_context
!= null, "Initialize must be called before calling this method");
340
_logger.LogWarning(
_context
.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
346
_logger.LogWarning(
_context
.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter);
355
TPDebug.Assert(_logger != null &&
_context
!= null, "Initialize must be called before calling this method");
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));
399
TPDebug.Assert(_logger != null &&
_context
!= null, "Initialize must be called before calling this method");
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));
503
TPDebug.Assert(_testSequence != null && _testObjectDictionary != null &&
_context
!= null && _dataCollectionSink != null && _logger != null, "Initialize must be called before calling this method");
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);
647
TPDebug.Assert(_logger != null &&
_context
!= null, "Initialize must be called before calling this method");
652
Action<string> logWarning = m => _logger.LogWarning(
_context
.SessionDataCollectionContext, m);
724
TPDebug.Assert(_logger != null &&
_context
!= null, "Initialize must be called before calling this method");
740
_logger.LogWarning(
_context
.SessionDataCollectionContext, $"VSTEST_DUMP_PATH is specified. Dump files will be saved in: {dumpPath}, and won't be added to attachments.");