Provides types that simplify the work of writing concurrent and asynchronous code. Commonly Used Types: System.Threading.Tasks.Task<TResult> System.Runtime.CompilerServices.TaskAwaiter<TResult> System.Threading.Tasks.TaskCompletionSource<TResult> System.Threading.Tasks.Task System.OperationCanceledException System.AggregateException When using NuGet 3.x this package requires at least version 3.4.
Provides the fundamental synchronization primitives, including System.Threading.Monitor and System.Threading.Mutex, that are required when writing asynchronous code. Commonly Used Types: System.Threading.Monitor System.Threading.SynchronizationContext System.Threading.ManualResetEvent System.Threading.AutoResetEvent System.Threading.ThreadLocal<T> System.Threading.EventWaitHandle System.Threading.SemaphoreSlim System.Threading.Mutex When using NuGet 3.x this package requires at least version 3.4.
Provides the System.Threading.Timer class, which is a mechanism for executing a method at specified intervals. Commonly Used Types: System.Threading.Timer System.Threading.TimerCallback When using NuGet 3.x this package requires at least version 3.4.
Provides types for passing data between producers and consumers. Commonly Used Types: System.Threading.Channel System.Threading.Channel<T>
Provides the System.Threading.Thread class, which allows developers to create and control a thread, set its priority, and get its state. Commonly Used Types: System.Threading.Thread System.Threading.ThreadStart System.Threading.ParameterizedThreadStart When using NuGet 3.x this package requires at least version 3.4.
Provides the System.Threading.ThreadPool class, which contains a pool of threads that can be used to execute tasks, post work items, wait on behalf of other threads, and process timers. Commonly Used Types: System.Threading.ThreadPool System.Threading.WaitOrTimerCallback When using NuGet 3.x this package requires at least version 3.4.
TPL Dataflow promotes actor/agent-oriented designs through primitives for in-process message passing, dataflow, and pipelining. TDF builds upon the APIs and scheduling infrastructure provided by the Task Parallel Library (TPL), and integrates with the language support for asynchrony provided by C#, Visual Basic, and F#. Commonly Used Types: System.Threading.Tasks.Dataflow.ActionBlock<TInput> System.Threading.Tasks.Dataflow.BatchBlock<T> System.Threading.Tasks.Dataflow.BatchedJoinBlock<T1, T2> System.Threading.Tasks.Dataflow.BatchedJoinBlock<T1, T2, T3> System.Threading.Tasks.Dataflow.BroadcastBlock<T> System.Threading.Tasks.Dataflow.BufferBlock<T> System.Threading.Tasks.Dataflow.DataflowBlock System.Threading.Tasks.Dataflow.JoinBlock<T1, T2> System.Threading.Tasks.Dataflow.JoinBlock<T1, T2, T3> System.Threading.Tasks.Dataflow.TransformBlock<TInput, TOutput> System.Threading.Tasks.Dataflow.TransformManyBlock<TInput, TOutput> System.Threading.Tasks.Dataflow.WriteOnceBlock<T>
Provides common types for interacting with asynchronous (or overlapped) input and output (I/O). Commonly Used Types: System.Threading.NativeOverlapped System.Threading.Overlapped System.Threading.IOCompletionCallback When using NuGet 3.x this package requires at least version 3.4.
Provides the System.Threading.Tasks.Parallel class, which adds support for running loops and iterators in parallel. Commonly Used Types: System.Threading.Tasks.Parallel System.Threading.Tasks.ParallelLoopState System.Threading.Tasks.ParallelLoopResult System.Threading.Tasks.ParallelOptions When using NuGet 3.x this package requires at least version 3.4.
Internal implementation package not meant for direct consumption. Please do not reference directly. Provides types that simplify the work of writing concurrent and asynchronous code. Commonly Used Types: System.Threading.Tasks.Task<TResult> System.Runtime.CompilerServices.TaskAwaiter<TResult> System.Threading.Tasks.TaskCompletionSource<TResult> System.Threading.Tasks.Task System.OperationCanceledException System.AggregateException When using NuGet 3.x this package requires at least version 3.4.
APIs to help manage rate limiting. Commonly Used Types: System.Threading.RateLimiting.RateLimiter System.Threading.RateLimiting.ConcurrencyLimiter System.Threading.RateLimiting.TokenBucketRateLimiter System.Threading.RateLimiting.RateLimitLease
Internal implementation package not meant for direct consumption. Please do not reference directly. Provides the System.Threading.Timer class, which is a mechanism for executing a method at specified intervals. Commonly Used Types: System.Threading.Timer System.Threading.TimerCallback When using NuGet 3.x this package requires at least version 3.4.
This package provides collections that are thread safe and guaranteed to never change their contents, also known as immutable collections. Like strings, any methods that perform modifications will not change the existing instance but instead return a new instance. For efficiency reasons, the implementation uses a sharing mechanism to ensure that newly created instances share as much data as possible with the previous instance while ensuring that operations have a predictable time complexity. The System.Collections.Immutable library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.
Provides support for managing access and audit control lists for synchronization primitives. Commonly Used Types: System.Security.AccessControl.EventWaitHandleAccessRule System.Security.AccessControl.EventWaitHandleAuditRule System.Security.AccessControl.MutexAccessRule System.Security.AccessControl.MutexAuditRule System.Security.AccessControl.MutexSecurity System.Security.AccessControl.SemaphoreAccessRule System.Security.AccessControl.SemaphoreAuditRule System.Security.AccessControl.SemaphoreSecurity
Provides several thread-safe collection classes that should be used in place of the corresponding types in the System.Collections.NonGeneric and System.Collections packages whenever multiple threads are accessing the collection concurrently. Commonly Used Types: System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue> System.Collections.Concurrent.ConcurrentQueue<T> System.Collections.Concurrent.ConcurrentBag<T> System.Collections.Concurrent.BlockingCollection<T> System.Collections.Concurrent.ConcurrentStack<T> When using NuGet 3.x this package requires at least version 3.4.
Static code analyzer to detect common mistakes or potential issues regarding threading and async coding.
Polly is a .NET resilience and transient-fault-handling library that allows developers to express resilience and transient fault handling policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio). This package contains only the library, without a dependency on the analyzers. Use the Microsoft.VisualStudio.Threading package to get the library and analyzers together.
Polly.Core is a .NET resilience and transient-fault-handling library that allows developers to express resilience strategies such as Retry, Circuit Breaker, Hedging, Timeout, Chaos and Fallback in a fluent and thread-safe manner.
This library provides interfaces and implementations for Task- and Filesystem operations. It ships implementations which can be used in unit testing, for example to achieve deterministic scheduling when writing tests involving tasks, timers. Furthermore, it ships an implementation which implements an InMemoryFileSystem which can be used to write unit tests for classes which interact with the filesystem, without involving any disk I/O, thus speeding up tests and improving isolation of unit tests from failures / parallel executions.
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks in .NET applications. No Windows Service / Task Scheduler required. Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery. https://www.hangfire.io/
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices. Features include: * HTTP, Socks4, Socks4a and Socks5 proxy support. * SASL Authentication via ANONYMOUS, CRAM-MD5, DIGEST-MD5, LOGIN, NTLM, OAUTHBEARER, PLAIN, SCRAM-SHA-1, SCRAM-SHA-256, SCRAM-SHA-512 and XOAUTH2. * A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8. * A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG. * A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, ANNOTATE, LIST-EXTENDED, ESORT, METADATA / METADATA-SERVER, NOTIFY, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE / CREATE-SPECIAL-USE, SEARCH=FUZZY, MOVE, UTF8=ACCEPT / UTF8=ONLY, LITERAL-, APPENDLIMIT, STATUS=SIZE, OBJECTID, REPLACE, SAVEDATE, XLIST, and X-GM-EXT1. * Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported). * Asynchronous versions of all methods that hit the network. * S/MIME, OpenPGP, DKIM and ARC support via MimeKit.Cryptography. * Microsoft TNEF support via MimeKit.
Enrich Serilog events with properties from the current thread.
Quartz.NET job scheduler - cron, calendar and interval triggers, clustering over a persistent job store, and Microsoft.Extensions hosting, logging, options and dependency injection throughout. The core package: everything else builds on this one.
Implementation of event queue using System.Threading.Channels
Polly.RateLimiting is a .NET resilience and transient-fault-handling library that allows developers to express resilience strategies using a Rate Limiter in a fluent and thread-safe manner.
A single-threaded async-compatible context.
Asynchronous locks and .NET threading extensions
Internal implementation package not meant for direct consumption. Please do not reference directly. Provides types that simplify the work of writing concurrent and asynchronous code. Commonly Used Types: System.Threading.Tasks.Task<TResult> System.Runtime.CompilerServices.TaskAwaiter<TResult> System.Threading.Tasks.TaskCompletionSource<TResult> System.Threading.Tasks.Task System.OperationCanceledException System.AggregateException When using NuGet 3.x this package requires at least version 3.4.
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required. Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery. https://www.hangfire.io/
Internal implementation package not meant for direct consumption. Please do not reference directly. Provides the System.Threading.Timer class, which is a mechanism for executing a method at specified intervals. Commonly Used Types: System.Threading.Timer System.Threading.TimerCallback When using NuGet 3.x this package requires at least version 3.4.
Folded into Quartz in 4.0: AddQuartz, QuartzOptions and the rest live in the Quartz package now. This package is empty and exists only so a grouped dependency update can move to 4.x - remove the reference, and see the migration guide.
Folded into Quartz in 4.0: AddQuartzHostedService, QuartzHostedService and QuartzHostedServiceOptions live in the Quartz package now. This package is empty and exists only so a grouped dependency update can move to 4.x - remove the reference, and see the migration guide.
Lazy cache is a simple, thread safe, in-memory caching library that makes it easy to add high performance caching to your dotnet app.
Exposes .NET core runtime metrics (GC, JIT, lock contention, thread pool, exceptions) using the prometheus-net package.
Renamed to Quartz.Serialization.Newtonsoft in 4.0. This package is empty and exists only so a grouped dependency update can move to 4.x - reference Quartz.Serialization.Newtonsoft instead, and see the migration guide.
Provides TPL classes for use in .Net 3.5 projects. This is an unofficial redistribution.
Introduces IAsyncEnumerable, IAsyncEnumerator, ForEachAsync(), and ParallelForEachAsync() GitHub: https://github.com/Dasync/AsyncEnumerable PROBLEM SPACE Helps to (a) create an element provider, where producing an element can take a lot of time due to dependency on other asynchronous events (e.g. wait handles, network streams), and (b) a consumer that processes those element as soon as they are ready without blocking the thread (the processing is scheduled on a worker thread instead). EXAMPLE using Dasync.Collections; static IAsyncEnumerable<int> ProduceAsyncNumbers(int start, int end) { return new AsyncEnumerable<int>(async yield => { // Just to show that ReturnAsync can be used multiple times await yield.ReturnAsync(start); for (int number = start + 1; number <= end; number++) await yield.ReturnAsync(number); // You can break the enumeration loop with the following call: yield.Break(); // This won't be executed due to the loop break above await yield.ReturnAsync(12345); }); } // Just to compare with synchronous version of enumerator static IEnumerable<int> ProduceNumbers(int start, int end) { yield return start; for (int number = start + 1; number <= end; number++) yield return number; yield break; yield return 12345; } static async Task ConsumeNumbersAsync() { var asyncEnumerableCollection = ProduceAsyncNumbers(start: 1, end: 10); await asyncEnumerableCollection.ForEachAsync(async number => { await Console.Out.WriteLineAsync($"{number}"); }); } // Just to compare with synchronous version of enumeration static void ConsumeNumbers() { var enumerableCollection = ProduceNumbers(start: 1, end: 10); foreach (var number in enumerableCollection) { Console.Out.WriteLine($"{number}"); } }
Quartz.NET ASP.NET Core integration - the HTTP API a remote scheduler is driven through, and the health check endpoint; Quartz Scheduling Framework for .NET
An implementation of an actor designed to integrate with C#'s async/await.
Adds a concept of thread safety to C# and VB so that most threading defects are detected at build-time or in a single-threaded test coverage. Includes thread dispatching aspects. An official PostSharp pattern library.
Implementation of a lock-free dictionary on .Net Included types: === NonBlocking.ConcurrentDictionary Lock-free, wait-free implementation of a dictionary. - has the same API as System.Collections.Concurrent.ConcurrentDictionary. - No locks are taken during any operation including Get, Add, Remove, internal resizes etc... - While multiple threads accessing NonBlocking dictionary will help each other in operations such as table resizing, there is no dependency on such behavior. If any thread get unscheduled or delayed for whatever reason, other threads will be able to make progress independently. - NonBlocking dictionary scales linearly with the number of active threads if hardware permits. On most operations NonBlocking dictionary is faster than Concurrent, especially in write-heavy scenarios. Core algorithms are based on NonBlockingHashMap, written and released to the public domain by Dr. Cliff Click. A good overview could be found here: https://www.youtube.com/watch?v=HJ-719EGIts === Counter32 === Counter64 Low-overhead scalable counters.
C# Redis Client for the worlds fastest distributed NoSQL datastore. Byte[], String and POCO Typed clients. Thread-Safe Basic and Pooled client managers included.