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)
216TPDebug.Assert(_logger != null && _context != null && _dataCollectionSink != null, "Initialize must be called before calling this method"); 236_logger.LogWarning(_context.SessionDataCollectionContext, message); 266Action<string> logWarning = m => _logger.LogWarning(_context.SessionDataCollectionContext, m); 272_logger.LogError(_context.SessionDataCollectionContext, $"Blame: Creating hang dump failed with error.", ex); 287var fileTransferInformation = new FileTransferInformation(_context.SessionDataCollectionContext, dumpFile, true, _fileHelper); 305_logger.LogError(_context.SessionDataCollectionContext, $"Blame: Collecting hang dump failed with error.", ex); 337TPDebug.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); 355TPDebug.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)); 399TPDebug.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)); 503TPDebug.Assert(_testSequence != null && _testObjectDictionary != null && _context != null && _dataCollectionSink != null && _logger != null, "Initialize must be called before calling this method"); 524var fti = new FileTransferInformation(_context.SessionDataCollectionContext, filepath, true); 531_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.NotGeneratingSequenceFile); 546var fileTransferInformation = new FileTransferInformation(_context.SessionDataCollectionContext, dumpFile, true); 572_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter); 603var fileTranferInformation = new FileTransferInformation(_context.SessionDataCollectionContext, dumpFileNameFullPath, true); 647TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 652Action<string> logWarning = m => _logger.LogWarning(_context.SessionDataCollectionContext, m); 724TPDebug.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.");