Skip to content

Instantly share code, notes, and snippets.

View JorgeCandeias's full-sized avatar

Jorge Candeias JorgeCandeias

View GitHub Profile
@JorgeCandeias
JorgeCandeias / script.csx
Last active August 27, 2022 22:58
Bulk Copy Service (flavour: no backpressure + priority discard)
#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;
@JorgeCandeias
JorgeCandeias / AsyncConsole.cs
Created December 26, 2018 18:13
AsyncConsole
using System;
using System.Threading;
using System.Threading.Tasks;
namespace SomeNamespace
{
public static class AsyncConsole
{
public static ConsoleColor DefaultColor { get; set; } = ConsoleColor.White;