Soenneker.Utils.ExecutionContexts
4.0.38
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Utils.ExecutionContexts --version 4.0.38
NuGet\Install-Package Soenneker.Utils.ExecutionContexts -Version 4.0.38
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.ExecutionContexts" Version="4.0.38" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.ExecutionContexts" Version="4.0.38" />
<PackageReference Include="Soenneker.Utils.ExecutionContexts" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.ExecutionContexts --version 4.0.38
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.ExecutionContexts, 4.0.38"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Utils.ExecutionContexts@4.0.38
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.ExecutionContexts&version=4.0.38
#tool nuget:?package=Soenneker.Utils.ExecutionContexts&version=4.0.38
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Utils.ExecutionContexts
Utilities for executing work inline or offloading to the thread pool based on the current synchronization context.
Installation
dotnet add package Soenneker.Utils.ExecutionContexts
Quick start
using Soenneker.Utils.ExecutionContexts;
Create a ExecutionContextUtil instance, then use the operation you need below.
Common operations
OnSynchronizationContext()- Determines whether the current thread is associated with a synchronization context. A synchronization context is typically present in UI threads or environments that require marshaling of work to a specific thread, such as Windows Forms or WPF applications.RunInlineOrOffload()- Executes the specified action either inline or offloads it to the thread pool, depending on the current synchronization context. If called from a synchronization context, the action is scheduled to run asynchronously on the thread pool.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Utils.ExecutionContexts:
| Package | Downloads |
|---|---|
|
Soenneker.Utils.File
A utility library encapsulating asynchronous file IO operations |
|
|
Soenneker.Utils.Path
Reserves unique file names and creates or generates temporary paths and directories. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.39 | 18,717 | 8/30/2026 |
| 4.0.38 | 16,896 | 8/29/2026 |
| 4.0.37 | 46,174 | 8/22/2026 |
| 4.0.36 | 73,494 | 8/8/2026 |
| 4.0.35 | 46,975 | 7/28/2026 |
| 4.0.34 | 107 | 7/28/2026 |
| 4.0.33 | 313 | 7/27/2026 |
| 4.0.32 | 76,139 | 7/16/2026 |
| 4.0.31 | 110 | 7/16/2026 |
| 4.0.30 | 113 | 7/16/2026 |
| 4.0.29 | 98,342 | 6/19/2026 |
| 4.0.28 | 3,508 | 6/19/2026 |
| 4.0.27 | 979 | 6/18/2026 |
| 4.0.26 | 92,758 | 6/6/2026 |
| 4.0.25 | 3,495 | 6/6/2026 |
| 4.0.24 | 6,850 | 6/5/2026 |
| 4.0.23 | 116,838 | 4/23/2026 |
| 4.0.22 | 4,246 | 4/22/2026 |
| 4.0.21 | 5,088 | 4/22/2026 |
| 4.0.20 | 90,244 | 3/13/2026 |
Loading failed
Improve README documentation