示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleLogListener"/>.
 /// </summary>
 public ConsoleLogListener()
 {
     if (!WinApi.AllocateConsole())
     {
         throw new InvalidOperationException(LocalizedStrings.CannotCreateConsoleWindow);
     }
 }