3 instantiations of UriDataAttachment
Microsoft.TestPlatform.CommunicationUtilities (2)
_generated\69\TestPlatformJsonContext.UriDataAttachment.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
((global::System.Uri)args[0], (string)args[1]),
Serialization\AttachmentConverters.cs (1)
70
return new
UriDataAttachment
(uri, description);
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
AttachmentSet.cs (1)
82
return new
UriDataAttachment
(uri, description);
57 references to UriDataAttachment
Microsoft.TestPlatform.CommunicationUtilities (40)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (2)
298
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
))
374
if (type == typeof(global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>))
_generated\29\TestPlatformJsonContext.AttachmentSet.g.cs (3)
95
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>>
110
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>), global::System.Array.Empty<global::System.Type>(), null),
113
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>>(options, info2);
_generated\69\TestPlatformJsonContext.UriDataAttachment.g.cs (19)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>? _UriDataAttachment;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
> UriDataAttachment
22
get => _UriDataAttachment ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
> Create_UriDataAttachment(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::System.Uri), typeof(string)}, modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
),
60
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
)obj).Description,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
),
80
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
)obj).Uri,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
).GetProperty("Uri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
99
private void UriDataAttachmentSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
? value)
109
writer.WriteString(PropName_Description, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
)value).Description);
111
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
)value).Uri, Uri);
_generated\88\TestPlatformJsonContext.IListUriDataAttachment.g.cs (11)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>>? _IListUriDataAttachment;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>> IListUriDataAttachment
22
get => _IListUriDataAttachment ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>> Create_IListUriDataAttachment(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIListInfo<global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>(options, info);
47
private void IListUriDataAttachmentSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
>? value)
Serialization\AttachmentConverters.cs (5)
35
attachmentSet.Attachments.Add(StjSafe.Deserialize<
UriDataAttachment
>(attachment.GetRawText(), options)!);
55
/// JSON converter for <see cref="
UriDataAttachment
"/> that handles the lack of a parameterless constructor
58
internal class UriDataAttachmentConverter : JsonConverter<
UriDataAttachment
>
60
public override
UriDataAttachment
? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
73
public override void Write(Utf8JsonWriter writer,
UriDataAttachment
value, JsonSerializerOptions options)
Microsoft.TestPlatform.CrossPlatEngine (4)
DataCollection\DataCollectionTestRunEventsHandler.cs (1)
226
foreach (
var
attachment in attachmentSet.Attachments)
EventHandlers\PathConverter.cs (2)
129
private static
UriDataAttachment
UpdateAttachment(
UriDataAttachment
attachment, PathConversionDirection _)
PostProcessing\PostProcessingTestRunAttachmentsProcessingEventsHandler.cs (1)
66
foreach (
var
uriDataAttachment in attachmentSet.Attachments)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameLogger.cs (1)
133
var
uriDataAttachment = attachmentSet.Attachments.LastOrDefault((attachment) => attachment.Uri.ToString().EndsWith(".xml"));
Microsoft.TestPlatform.Utilities (3)
CodeCoverageDataAttachmentsHandler.cs (3)
57
foreach (
var
attachment in attachmentSet.Attachments)
80
resultAttachmentSet.Attachments.Add(
UriDataAttachment
.CreateFrom(coverageReport, CoverageFriendlyName));
86
resultAttachmentSet.Attachments.Add(
UriDataAttachment
.CreateFrom(coverageOtherFilePath, string.Empty));
Microsoft.VisualStudio.TestPlatform.Common (2)
DataCollection\DataCollectionAttachmentManager.cs (1)
306
AttachmentSets[fileTransferInfo.Context][uri].Attachments.Add(
UriDataAttachment
.CreateFrom(localFilePath, fileTransferInfo.Description));
DataCollection\DataCollectionManager.cs (1)
799
foreach (
var
file in entry.Attachments)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Utility\Converter.cs (2)
457
foreach (VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
uriDataAttachment in attachmentSet.Attachments)
513
foreach (VisualStudio.TestPlatform.ObjectModel.
UriDataAttachment
uriDataAttachment in attachmentSet.Attachments)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
AttachmentSet.cs (3)
35
public IList<
UriDataAttachment
> Attachments { get; private set; }
41
Attachments = new List<
UriDataAttachment
>();
79
public static
UriDataAttachment
CreateFrom(string localFilePath, string? description)
vstest.console (1)
Internal\ConsoleLogger.cs (1)
693
foreach (
var
uriDataAttachment in attachmentSet.Attachments)
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
693
foreach (
var
uriDataAttachment in attachmentSet.Attachments)