Shuttle.Core.Threading
20.0.0
Prefix Reserved
dotnet add package Shuttle.Core.Threading --version 20.0.0
NuGet\Install-Package Shuttle.Core.Threading -Version 20.0.0
<PackageReference Include="Shuttle.Core.Threading" Version="20.0.0" />
paket add Shuttle.Core.Threading --version 20.0.0
#r "nuget: Shuttle.Core.Threading, 20.0.0"
// Install Shuttle.Core.Threading as a Cake Addin #addin nuget:?package=Shuttle.Core.Threading&version=20.0.0 // Install Shuttle.Core.Threading as a Cake Tool #tool nuget:?package=Shuttle.Core.Threading&version=20.0.0
Shuttle.Core.Threading
PM> Install-Package Shuttle.Core.Threading
Provides various classes and interfaces to facilitate thread-based processing.
ProcessorThreadPool
public ProcessorThreadPool(
string name,
int threadCount,
IServiceScopeFactory serviceScopeFactory,
IProcessorFactory processorFactory,
ProcessorThreadOptions processorThreadOptions
);
Each thread pool has a name
used only for identyfing the pool. The threadCount
determines the number of ProcessorThread
instances in the pool. Each ProcessorThread
calls the IProcessor.ExecuteAsync(CancellationToken)
method on the instance provided by the IProcessorFactory.Create()
method in a loop while the CancellationToken.IsCancellationRequested
returns false
.
Every call to IProcessor.ExecuteAsync(ProcessorThreadContext, CancellationToken)
is wrapped in a ProcessorThreadContext
instance that provides the State
along with the IServiceScope
instance created by the IServiceScopeFactory.CreateScope()
method.
ProcessorThreadOptions
Option | Default | Description |
---|---|---|
JoinTimeout |
00:00:15 |
The duration to allow the processor thread to join the main thread. |
IsBackground |
true |
Indicates whether the thread will be started as a background thread. Background threads are instantly killed when the host process stops. |
Priority |
ThreadPriority.Normal |
Indicates the thread priority. |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
- Microsoft.Extensions.Options (>= 8.0.2)
- Moq (>= 4.20.72)
- Shuttle.Core.Contract (>= 20.0.0)
- Shuttle.Core.Reflection (>= 20.0.0)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Shuttle.Core.Threading:
Package | Downloads |
---|---|
Shuttle.Esb
Contains the core Shuttle.Esb assembly that should always be referenced when building Shuttle.Esb solutions. |
|
Shuttle.Recall
Event sourcing mechanism. |
|
Shuttle.Core.ServiceHost
Turns your console application into a Windows service. |
|
Shuttle.Core.Data.CallContext
IDatabaseConnectionCache implementation for use in async/await scenarios. |
|
Shuttle.Core.Data.ThreadDatabaseContextScope
Provides a mechanism to create a new database context scope per processor thread. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
20.0.0 | 360 | 2/2/2025 |
13.1.0 | 1,682 | 8/5/2024 |
13.0.0 | 2,688 | 4/30/2024 |
12.0.1 | 15,537 | 12/1/2022 |
12.0.0 | 27,852 | 9/4/2022 |
11.1.2 | 1,070 | 4/9/2022 |
11.1.1 | 40,438 | 1/30/2021 |
11.0.2 | 13,236 | 1/17/2021 |
11.0.1 | 2,675 | 11/27/2020 |
11.0.0 | 37,519 | 6/21/2019 |
10.1.0 | 1,194 | 4/27/2019 |
10.0.2 | 73,517 | 7/4/2018 |
10.0.1 | 1,503 | 7/2/2018 |
10.0.0 | 22,704 | 1/3/2018 |