This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "nuget: CommunityToolkit.Diagnostics" | |
#r "nuget: CommunityToolkit.HighPerformance" | |
#r "nuget: Microsoft.Extensions.Logging" | |
#r "nuget: Microsoft.Extensions.Logging.Console" | |
using Microsoft.Extensions.Hosting; | |
using System.Threading; | |
using System.Collections.Concurrent; | |
using System.Buffers; | |
using CommunityToolkit.HighPerformance.Buffers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace SomeNamespace | |
{ | |
public static class AsyncConsole | |
{ | |
public static ConsoleColor DefaultColor { get; set; } = ConsoleColor.White; |