示例#1
0
 /// <summary>
 /// Writes output of a particular type to the user interface
 /// with a newline ending.
 /// </summary>
 /// <param name="hostOutput">
 /// The IHostOutput implementation to use for WriteOutput calls.
 /// </param>
 /// <param name="outputString">
 /// The output string to be written.
 /// </param>
 /// <param name="outputType">
 /// Specifies the type of output to be written.
 /// </param>
 public static void WriteOutput(
     this IHostOutput hostOutput,
     string outputString,
     OutputType outputType)
 {
     hostOutput.WriteOutput(
         outputString,
         true,
         OutputType.Normal);
 }
示例#2
0
 /// <summary>
 /// Writes normal output to the user interface.
 /// </summary>
 /// <param name="hostOutput">
 /// The IHostOutput implementation to use for WriteOutput calls.
 /// </param>
 /// <param name="outputString">
 /// The output string to be written.
 /// </param>
 /// <param name="includeNewLine">
 /// If true, a newline should be appended to the output's contents.
 /// </param>
 public static void WriteOutput(
     this IHostOutput hostOutput,
     string outputString,
     bool includeNewLine)
 {
     hostOutput.WriteOutput(
         outputString,
         includeNewLine,
         OutputType.Normal);
 }
示例#3
0
 /// <summary>
 /// Writes output of a particular type to the user interface.
 /// </summary>
 /// <param name="hostOutput">
 /// The IHostOutput implementation to use for WriteOutput calls.
 /// </param>
 /// <param name="outputString">
 /// The output string to be written.
 /// </param>
 /// <param name="includeNewLine">
 /// If true, a newline should be appended to the output's contents.
 /// </param>
 /// <param name="outputType">
 /// Specifies the type of output to be written.
 /// </param>
 public static void WriteOutput(
     this IHostOutput hostOutput,
     string outputString,
     bool includeNewLine,
     OutputType outputType)
 {
     hostOutput.WriteOutput(
         outputString,
         includeNewLine,
         outputType,
         ConsoleColor.Gray,
         (ConsoleColor)(-1)); // -1 indicates the console's raw background color
 }
示例#4
0
 /// <summary>
 /// Writes output of a particular type to the user interface.
 /// </summary>
 /// <param name="hostOutput">
 /// The IHostOutput implementation to use for WriteOutput calls.
 /// </param>
 /// <param name="outputString">
 /// The output string to be written.
 /// </param>
 /// <param name="includeNewLine">
 /// If true, a newline should be appended to the output's contents.
 /// </param>
 /// <param name="outputType">
 /// Specifies the type of output to be written.
 /// </param>
 public static void WriteOutput(
     this IHostOutput hostOutput,
     string outputString,
     bool includeNewLine,
     OutputType outputType)
 {
     hostOutput.WriteOutput(
         outputString,
         includeNewLine,
         outputType,
         ConsoleColor.Gray,
         ConsoleColor.Black);
 }
示例#5
0
 /// <summary>
 /// Writes normal output with a newline to the user interface.
 /// </summary>
 /// <param name="hostOutput">
 /// The IHostOutput implementation to use for WriteOutput calls.
 /// </param>
 /// <param name="outputString">
 /// The output string to be written.
 /// </param>
 public static void WriteOutput(
     this IHostOutput hostOutput,
     string outputString)
 {
     hostOutput.WriteOutput(outputString, true);
 }