File: Logger\ITestLoggerWithParams.cs
Web Access
Project: src\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.Collections.Generic;

namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client;

/// <summary>
/// This Interface extends ITestLogger and adds capability to pass
/// parameters to loggers such as TfsPublisher.
/// Currently it is marked for internal consumption (ex: TfsPublisher)
/// </summary>
public interface ITestLoggerWithParameters : ITestLogger
{
    /// <summary>
    /// Initializes the Test Logger with given parameters.
    /// </summary>
    /// <param name="events">Events that can be registered for.</param>
    /// <param name="parameters">Collection of parameters</param>
    void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters);
}