// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using System; namespace Microsoft.SqlTools.EditorServices { /// /// Provides details about output that has been written to the /// SqlTools host. /// public class OutputWrittenEventArgs { /// /// Gets the text of the output. /// public string OutputText { get; private set; } /// /// Gets the type of the output. /// public OutputType OutputType { get; private set; } /// /// Gets a boolean which indicates whether a newline /// should be written after the output. /// public bool IncludeNewLine { get; private set; } /// /// Gets the foreground color of the output text. /// public ConsoleColor ForegroundColor { get; private set; } /// /// Gets the background color of the output text. /// public ConsoleColor BackgroundColor { get; private set; } /// /// Creates an instance of the OutputWrittenEventArgs class. /// /// The text of the output. /// A boolean which indicates whether a newline should be written after the output. /// The type of the output. /// The foreground color of the output text. /// The background color of the output text. public OutputWrittenEventArgs( string outputText, bool includeNewLine, OutputType outputType, ConsoleColor foregroundColor, ConsoleColor backgroundColor) { this.OutputText = outputText; this.IncludeNewLine = includeNewLine; this.OutputType = outputType; this.ForegroundColor = foregroundColor; this.BackgroundColor = backgroundColor; } } }