| File: Logging\Events\DataCollectionMessageEventArgs.cs | Web Access |
| Project: src\vstest\src\Microsoft.TestPlatform.ObjectModel\Microsoft.TestPlatform.ObjectModel.csproj (Microsoft.VisualStudio.TestPlatform.ObjectModel) |
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.Serialization; namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; /// <summary> /// EventArg used for raising data collector message event. /// </summary> [DataContract] public class DataCollectionMessageEventArgs : TestRunMessageEventArgs { /// <summary> /// Constructor /// </summary> /// <param name="level">Level at which message should be logged.</param> /// <param name="message">Text message.</param> public DataCollectionMessageEventArgs(TestMessageLevel level, string message) : base(level, message) { } /// <summary> /// Friendly name of collector /// </summary> [DataMember] public string? FriendlyName { get; set; } /// <summary> /// Uri of collector. /// </summary> [DataMember] public Uri? Uri { get; set; } /// <summary> /// Test case id if the message is generated by test case collection. /// </summary> [DataMember] public Guid TestCaseId { get; set; } }