Skip to content

Instantly share code, notes, and snippets.

View dust63's full-sized avatar

Romain J dust63

View GitHub Profile
@dust63
dust63 / AsyncParallelWrapper.cs
Last active November 2, 2023 14:41
Async parallel gated
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace System.Threading.Tasks.Helpers
{
/// <summary>
/// Allow to manage parallelism task with a max degree of parallelism
/// </summary>
public class AsyncParallelWrapper
@dust63
dust63 / RefitExtensions.cs
Last active August 18, 2021 21:49
RefitExtensions: Parse validation api exception to Dictionary<string, IEnumerable<string>>
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
using Refit;
namespace Refit.Extensions
{
public static class RefitExtensions