| File: DefaultExecutorUriAttribute.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; namespace Microsoft.VisualStudio.TestPlatform.ObjectModel; /// <summary> /// This attribute is applied on the discoverers to inform the framework about their default executor. /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class DefaultExecutorUriAttribute : Attribute { /// <summary> /// Initializes with the Uri of the executor. /// </summary> /// <param name="executorUri">The Uri of the executor</param> public DefaultExecutorUriAttribute(string executorUri) { ValidateArg.NotNullOrWhiteSpace(executorUri, nameof(executorUri)); ExecutorUri = executorUri; } /// <summary> /// The Uri of the Test Executor. /// </summary> public string ExecutorUri { get; private set; } }