3 instantiations of AttachmentSet
Microsoft.TestPlatform.CommunicationUtilities (1)
Serialization\AttachmentConverters.cs (1)
27var attachmentSet = new AttachmentSet(uri, displayName);
Microsoft.TestPlatform.Utilities (1)
CodeCoverageDataAttachmentsHandler.cs (1)
73var resultAttachmentSet = new AttachmentSet(CodeCoverageDataCollectorUri, CoverageFriendlyName);
Microsoft.VisualStudio.TestPlatform.Common (1)
DataCollection\DataCollectionAttachmentManager.cs (1)
178AttachmentSets[fileTransferInfo.Context].TryAdd(uri, new AttachmentSet(uri, friendlyName));
184 references to AttachmentSet
Microsoft.TestPlatform.CommunicationUtilities (21)
DataCollectionTestCaseEventHandler.cs (2)
111Collection<AttachmentSet> attachmentSets; 122attachmentSets = new Collection<AttachmentSet>();
DataCollectionTestCaseEventSender.cs (3)
95public Collection<AttachmentSet>? SendTestCaseEnd(TestCaseEndEventArgs e) 97var attachmentSets = new Collection<AttachmentSet>(); 103attachmentSets = _dataSerializer.DeserializePayload<Collection<AttachmentSet>>(message);
EventHandlers\TestRunEventsHandler.cs (1)
48public void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<AttachmentSet>? runContextAttachments, ICollection<string>? executorUris)
Interfaces\IDataCollectionTestCaseEventSender.cs (1)
51Collection<AttachmentSet>? SendTestCaseEnd(TestCaseEndEventArgs e);
Interfaces\ITestRequestHandler.cs (1)
74void SendExecutionComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<AttachmentSet>? runContextAttachments, ICollection<string>? executorUris);
Messages\TestRunAttachmentsProcessingCompletePayload.cs (1)
24public IEnumerable<AttachmentSet>? Attachments { get; set; }
Messages\TestRunCompletePayload.cs (1)
29public ICollection<AttachmentSet>? RunAttachments { get; set; }
Serialization\AfterTestRunEndResultConverter.cs (2)
34var attachmentSets = DeserializeProperty<Collection<AttachmentSet>>(root, "AttachmentSets", options) ?? new Collection<AttachmentSet>();
Serialization\AttachmentConverters.cs (5)
16/// JSON converter for <see cref="AttachmentSet"/> that handles the lack of a parameterless constructor. 18internal class AttachmentSetConverter : JsonConverter<AttachmentSet> 20public override AttachmentSet? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 27var attachmentSet = new AttachmentSet(uri, displayName); 43public override void Write(Utf8JsonWriter writer, AttachmentSet value, JsonSerializerOptions options)
Serialization\TestResultConverter.cs (1)
37testResult.Attachments.Add(JsonSerializer.Deserialize<AttachmentSet>(attachment, options)!);
Serialization\TestResultConverterV2.cs (1)
40testResult.Attachments.Add(JsonSerializer.Deserialize<AttachmentSet>(attachment, options)!);
Serialization\TestRunCompleteEventArgsConverter.cs (2)
38var attachmentSets = DeserializeProperty<Collection<AttachmentSet>>(root, "AttachmentSets", options) ?? new Collection<AttachmentSet>();
Microsoft.TestPlatform.CrossPlatEngine (82)
Adapter\TestExecutionRecorder.cs (5)
21private readonly List<AttachmentSet> _attachmentSets; 42_attachmentSets = new List<AttachmentSet>(); 56internal Collection<AttachmentSet> Attachments 60return new Collection<AttachmentSet>(_attachmentSets); 149public void RecordAttachments(IList<AttachmentSet> attachments)
AttachmentsProcessing\TestRunAttachmentsProcessingManager.cs (18)
45public async Task ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<AttachmentSet> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler eventHandler, CancellationToken cancellationToken) 50public Task<Collection<AttachmentSet>> ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<AttachmentSet> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, CancellationToken cancellationToken) 55private async Task<Collection<AttachmentSet>> InternalProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<AttachmentSet> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler? eventHandler, CancellationToken cancellationToken) 58Collection<AttachmentSet> localAttachments = new(attachments.ToList()); 67var cancelAttachmentProcessingCompletionSource = new TaskCompletionSource<Collection<AttachmentSet>>(); 70Task<Collection<AttachmentSet>> task = Task.Run(async () => await ProcessAttachmentsAsync(runSettingsXml, localAttachments, invokedDataCollector, eventHandler, cancellationToken)); 106private async Task<Collection<AttachmentSet>> ProcessAttachmentsAsync(string? runSettingsXml, Collection<AttachmentSet> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler? eventsHandler, CancellationToken cancellationToken) 134Collection<AttachmentSet> attachmentsBackup = null!; 140attachmentsBackup = new Collection<AttachmentSet>(attachments.ToList()); 154foreach (var attachment in attachmentsToBeProcessed) 171ICollection<AttachmentSet> processedAttachments = await dataCollectorAttachmentsProcessor.DataCollectorAttachmentProcessorInstance.ProcessAttachmentSetsAsync( 173new Collection<AttachmentSet>(attachmentsToBeProcessed), 180foreach (var attachment in processedAttachments) 206private Collection<AttachmentSet> FinalizeOperation(IRequestData requestData, TestRunAttachmentsProcessingCompleteEventArgs completeArgs, Collection<AttachmentSet> attachments, Stopwatch stopwatch, ITestRunAttachmentsProcessingEventsHandler? eventHandler)
Client\InProcessProxyexecutionManager.cs (1)
103var completeArgs = new TestRunCompleteEventArgs(null, false, true, exception, new Collection<AttachmentSet>(), new Collection<InvokedDataCollector>(), TimeSpan.Zero);
Client\Parallel\ParallelProxyExecutionManager.cs (2)
147ICollection<AttachmentSet>? runContextAttachments, 479var completeArgs = new TestRunCompleteEventArgs(null, false, true, null, new Collection<AttachmentSet>(), new Collection<InvokedDataCollector>(), TimeSpan.Zero);
Client\Parallel\ParallelRunDataAggregator.cs (7)
36RunContextAttachments = new Collection<AttachmentSet>(); 37RunCompleteArgsAttachments = new List<AttachmentSet>(); 52public Collection<AttachmentSet> RunContextAttachments { get; set; } 54public List<AttachmentSet> RunCompleteArgsAttachments { get; } 144ICollection<AttachmentSet>? runContextAttachments, 145Collection<AttachmentSet>? runCompleteArgsAttachments, 157foreach (var attachmentSet in runContextAttachments)
Client\Parallel\ParallelRunEventsHandler.cs (3)
66ICollection<AttachmentSet>? runContextAttachments, 79new Collection<AttachmentSet>(_runDataAggregator.RunCompleteArgsAttachments), 109ICollection<AttachmentSet>? runContextAttachments,
Client\ProxyExecutionManager.cs (2)
322var completeArgs = new TestRunCompleteEventArgs(null, false, true, null, new Collection<AttachmentSet>(), new Collection<InvokedDataCollector>(), TimeSpan.Zero); 420public void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<AttachmentSet>? runContextAttachments, ICollection<string>? executorUris)
DataCollection\DataCollectionResult.cs (2)
15public DataCollectionResult(Collection<AttachmentSet>? attachments, Collection<InvokedDataCollector>? invokedDataCollectors) 24public Collection<AttachmentSet>? Attachments { get; }
DataCollection\DataCollectionTestRunEventsHandler.cs (8)
32private Collection<AttachmentSet>? _dataCollectionAttachmentSets; 143public void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<AttachmentSet>? runContextAttachments, ICollection<string>? executorUris) 205internal static ICollection<AttachmentSet>? GetCombinedAttachmentSets(Collection<AttachmentSet>? originalAttachmentSets, ICollection<AttachmentSet>? newAttachments) 214return new Collection<AttachmentSet>(newAttachments.ToList()); 217foreach (var attachmentSet in newAttachments) 219var attSet = originalAttachmentSets.FirstOrDefault(item => Equals(item.Uri, attachmentSet.Uri));
DataCollection\ParallelDataCollectionEventsHandler.cs (1)
54ICollection<AttachmentSet>? runContextAttachments,
DataCollection\ProxyOutOfProcDataCollectionManager.cs (8)
22private readonly Dictionary<Guid, Collection<AttachmentSet>> _attachmentsCache; 40_attachmentsCache = new Dictionary<Guid, Collection<AttachmentSet>>(); 48_attachmentsCache = new Dictionary<Guid, Collection<AttachmentSet>>(); 64if (!_attachmentsCache.TryGetValue(e.TestCaseId, out Collection<AttachmentSet>? attachmentSets)) 66attachmentSets = new Collection<AttachmentSet>(); 70foreach (var attachment in attachments) 82if (_attachmentsCache.TryGetValue(e.TestCaseId, out Collection<AttachmentSet>? attachmentSets)) 84foreach (var attachment in attachmentSets)
EventHandlers\IPathConverter.cs (4)
27Collection<AttachmentSet> UpdateAttachmentSets(Collection<AttachmentSet> attachmentSets, PathConversionDirection updateDirection); 29ICollection<AttachmentSet> UpdateAttachmentSets(ICollection<AttachmentSet>? attachmentSets, PathConversionDirection updateDirection);
EventHandlers\NullPathConverter.cs (4)
22Collection<AttachmentSet> IPathConverter.UpdateAttachmentSets(Collection<AttachmentSet> attachmentSets, PathConversionDirection _) => attachmentSets; 24ICollection<AttachmentSet> IPathConverter.UpdateAttachmentSets(ICollection<AttachmentSet>? attachmentSets, PathConversionDirection _) => attachmentSets!;
EventHandlers\PathConverter.cs (6)
108public Collection<AttachmentSet> UpdateAttachmentSets(Collection<AttachmentSet> attachmentSets, PathConversionDirection updateDirection) 115public ICollection<AttachmentSet> UpdateAttachmentSets(ICollection<AttachmentSet>? attachmentSets, PathConversionDirection updateDirection) 122private static AttachmentSet UpdateAttachmentSet(AttachmentSet attachmentSet, PathConversionDirection updateDirection)
EventHandlers\TestRequestHandler.cs (1)
214ICollection<AttachmentSet>? runContextAttachments,
Execution\BaseRunTests.cs (1)
619Collection<AttachmentSet>? attachments = FrameworkHandle?.Attachments;
PostProcessing\ArtifactProcessingManager.cs (3)
198List<AttachmentSet> attachments = new(); 212foreach (var attachmentSet in eventArgs?.AttachmentSets ?? Enumerable.Empty<AttachmentSet>())
PostProcessing\PostProcessingTestRunAttachmentsProcessingEventsHandler.cs (6)
20private readonly ConcurrentBag<AttachmentSet> _attachmentsSet = new(); 36public void HandleProcessedAttachmentsChunk(IEnumerable<AttachmentSet> attachments) 44foreach (var attachment in attachments) 50public void HandleTestRunAttachmentsProcessingComplete(TestRunAttachmentsProcessingCompleteEventArgs attachmentsProcessingCompleteEventArgs, IEnumerable<AttachmentSet>? lastChunk) 52foreach (var attachment in lastChunk ?? []) 64foreach (var attachmentSet in _attachmentsSet)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameLogger.cs (1)
125foreach (var attachmentSet in e.AttachmentSets)
Microsoft.TestPlatform.Utilities (6)
CodeCoverageDataAttachmentsHandler.cs (6)
47public async Task<ICollection<AttachmentSet>> ProcessAttachmentSetsAsync(XmlElement configurationElement, ICollection<AttachmentSet>? attachments, IProgress<int> progressReporter, IMessageLogger? logger, CancellationToken cancellationToken) 50return new Collection<AttachmentSet>(); 55foreach (var attachmentSet in attachments) 73var resultAttachmentSet = new AttachmentSet(CodeCoverageDataCollectorUri, CoverageFriendlyName); 89return new Collection<AttachmentSet> { resultAttachmentSet };
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (7)
Interfaces\ITranslationLayerRequestSenderAsync.cs (1)
155IEnumerable<AttachmentSet> attachments,
Interfaces\IVsTestConsoleWrapperAsync.cs (2)
452IEnumerable<AttachmentSet> attachments, 473IEnumerable<AttachmentSet> attachments,
VsTestConsoleRequestSender.cs (2)
833IEnumerable<AttachmentSet> attachments, 1302IEnumerable<AttachmentSet> attachments,
VsTestConsoleWrapper.cs (2)
1148IEnumerable<AttachmentSet> attachments, 1170IEnumerable<AttachmentSet> attachments,
Microsoft.VisualStudio.TestPlatform.Client (6)
AttachmentsProcessing\InProcessTestRunAttachmentsProcessingEventsHandler.cs (2)
28public void HandleProcessedAttachmentsChunk(IEnumerable<AttachmentSet> attachments) 51IEnumerable<AttachmentSet>? lastChunk)
AttachmentsProcessing\TestRunAttachmentsProcessingEventsHandler.cs (2)
32public void HandleTestRunAttachmentsProcessingComplete(TestRunAttachmentsProcessingCompleteEventArgs attachmentsProcessingCompleteEventArgs, IEnumerable<AttachmentSet>? lastChunk) 57public void HandleProcessedAttachmentsChunk(IEnumerable<AttachmentSet> attachments)
Execution\TestRunRequest.cs (2)
356public void HandleTestRunComplete(TestRunCompleteEventArgs runCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<AttachmentSet>? runContextAttachments, ICollection<string>? executorUris) 401runContextAttachments != null ? new Collection<AttachmentSet>(runContextAttachments.ToList()) : null,
Microsoft.VisualStudio.TestPlatform.Common (31)
DataCollection\AfterTestRunEndResult.cs (3)
38public AfterTestRunEndResult(Collection<AttachmentSet> attachmentSets, IDictionary<string, object> metrics) 54public AfterTestRunEndResult(Collection<AttachmentSet> attachmentSets, 64public Collection<AttachmentSet> AttachmentSets { get; private set; }
DataCollection\DataCollectionAttachmentManager.cs (5)
83AttachmentSets = new ConcurrentDictionary<DataCollectionContext, ConcurrentDictionary<Uri, AttachmentSet>>(); 94internal ConcurrentDictionary<DataCollectionContext, ConcurrentDictionary<Uri, AttachmentSet>> AttachmentSets 136public List<AttachmentSet> GetAttachments(DataCollectionContext dataCollectionContext) 150List<AttachmentSet> attachments = new(); 173AttachmentSets.GetOrAdd(fileTransferInfo.Context, _ => new ConcurrentDictionary<Uri, AttachmentSet>());
DataCollection\DataCollectionManager.cs (13)
227public Collection<AttachmentSet> SessionEnded(bool isCancelled = false) 232return new Collection<AttachmentSet>(); 238return new Collection<AttachmentSet>(); 245var result = new List<AttachmentSet>(); 254return new Collection<AttachmentSet>(result); 262return new Collection<AttachmentSet>(result); 328public Collection<AttachmentSet> TestCaseEnded(TestCaseEndEventArgs testCaseEndEventArgs) 332return new Collection<AttachmentSet>(); 342List<AttachmentSet>? result = null; 351return new Collection<AttachmentSet>(result!); 359return new Collection<AttachmentSet>(result); 763private static void LogAttachments(List<AttachmentSet> attachmentSets) 771foreach (var entry in attachmentSets)
DataCollection\Interfaces\IDataCollectionAttachmentManager.cs (1)
41List<AttachmentSet> GetAttachments(DataCollectionContext dataCollectionContext);
DataCollection\Interfaces\IDataCollectionManager.cs (2)
40Collection<AttachmentSet> TestCaseEnded(TestCaseEndEventArgs testCaseEndEventArgs); 68Collection<AttachmentSet> SessionEnded(bool isCancelled);
ExtensionDecorators\SerialTestRunDecorator.cs (1)
121public void RecordAttachments(IList<AttachmentSet> attachmentSets)
ExtensionDecorators\SerialTestRunDecoratorFrameworkHandle.cs (1)
31public void RecordAttachments(IList<AttachmentSet> attachmentSets)
Interfaces\Engine\ClientProtocol\IParallelProxyExecutionManager.cs (1)
29ICollection<AttachmentSet>? runContextAttachments,
Interfaces\Engine\ITestRunAttachmentsProcessingManager.cs (3)
27Task ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<AttachmentSet> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler eventHandler, CancellationToken cancellationToken); 38Task<Collection<AttachmentSet>> ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<AttachmentSet> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, CancellationToken cancellationToken);
Logging\InternalTestLoggerEvents.cs (1)
288internal void CompleteTestRun(ITestRunStatistics? stats, bool isCanceled, bool isAborted, Exception? error, Collection<AttachmentSet>? attachmentSet, Collection<InvokedDataCollector>? invokedDataCollectors, TimeSpan elapsedTime)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (7)
Utility\Converter.cs (7)
170public List<CollectorDataEntry> ToCollectionEntries(IEnumerable<AttachmentSet> attachmentSets, TestRun testRun, string trxFileDirectory) 181foreach (var attachmentSet in attachmentSets) 193public IList<string> ToResultFiles(IEnumerable<AttachmentSet>? attachmentSets, TestRun testRun, string trxFileDirectory, 202foreach (var attachmentSet in attachmentSets) 388foreach (AttachmentSet attachmentSet in rockSteadyTestResult.Attachments) 438private CollectorDataEntry ToCollectorEntry(AttachmentSet attachmentSet, Guid testResultExecutionId, TestRun testRun, string trxFileDirectory) 495private IList<string> ToResultFiles(AttachmentSet attachmentSet, Guid testResultExecutionId, TestRun testRun, string trxFileDirectory)
Microsoft.VisualStudio.TestPlatform.ObjectModel (17)
Adapter\Interfaces\ITestExecutionRecorder.cs (1)
44void RecordAttachments(IList<AttachmentSet> attachmentSets);
Client\Events\TestRunCompleteEventArgs.cs (5)
23AttachmentSets = new Collection<AttachmentSet>(); 41Collection<AttachmentSet>? attachmentSets, 68Collection<AttachmentSet>? attachmentSets, 76AttachmentSets = attachmentSets ?? new Collection<AttachmentSet>(); // Ensuring attachmentSets are not null, so that new attachmentSets can be combined whenever required. 111public Collection<AttachmentSet> AttachmentSets { get; private set; }
Client\Interfaces\IInternalTestRunEventsHandler.cs (1)
23void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<AttachmentSet>? runContextAttachments, ICollection<string>? executorUris);
Client\Interfaces\ITestRunAttachmentsProcessingEventsHandler.cs (2)
18void HandleTestRunAttachmentsProcessingComplete(TestRunAttachmentsProcessingCompleteEventArgs attachmentsProcessingCompleteEventArgs, IEnumerable<AttachmentSet>? lastChunk); 24void HandleProcessedAttachmentsChunk(IEnumerable<AttachmentSet> attachments);
Client\Interfaces\ITestRunEventsHandler.cs (1)
22void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<AttachmentSet>? runContextAttachments, ICollection<string>? executorUris);
Client\Payloads\TestRunAttachmentsProcessingPayload.cs (1)
18public IEnumerable<AttachmentSet>? Attachments { get; set; }
DataCollector\IDataCollectorAttachmentProcessor.cs (2)
50Task<ICollection<AttachmentSet>> ProcessAttachmentSetsAsync(XmlElement configurationElement, ICollection<AttachmentSet> attachments, IProgress<int> progressReporter, IMessageLogger logger, CancellationToken cancellationToken);
DataCollector\IDataCollectorAttachments.cs (2)
19ICollection<AttachmentSet> HandleDataCollectionAttachmentSets(ICollection<AttachmentSet> dataCollectionAttachments);
TestResult.cs (2)
30Attachments = new Collection<AttachmentSet>(); 48public Collection<AttachmentSet> Attachments { get; private set; }
vstest.console (3)
InProcessVsTestConsoleWrapper.cs (2)
910IEnumerable<AttachmentSet> attachments, 930IEnumerable<AttachmentSet> attachments,
Internal\ConsoleLogger.cs (1)
691foreach (var attachmentSet in e.AttachmentSets)
vstest.console.arm64 (3)
src\vstest\src\vstest.console\InProcessVsTestConsoleWrapper.cs (2)
910IEnumerable<AttachmentSet> attachments, 930IEnumerable<AttachmentSet> attachments,
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
691foreach (var attachmentSet in e.AttachmentSets)