Soenneker.Invocations.Actions
11.0.35
Prefix Reserved
dotnet add package Soenneker.Invocations.Actions --version 11.0.35
NuGet\Install-Package Soenneker.Invocations.Actions -Version 11.0.35
<PackageReference Include="Soenneker.Invocations.Actions" Version="11.0.35" />
<PackageVersion Include="Soenneker.Invocations.Actions" Version="11.0.35" />
<PackageReference Include="Soenneker.Invocations.Actions" />
paket add Soenneker.Invocations.Actions --version 11.0.35
#r "nuget: Soenneker.Invocations.Actions, 11.0.35"
#:package Soenneker.Invocations.Actions@11.0.35
#addin nuget:?package=Soenneker.Invocations.Actions&version=11.0.35
#tool nuget:?package=Soenneker.Invocations.Actions&version=11.0.35
Soenneker.Invocations.Actions
Represents a deferred synchronous action with explicit state, allowing a static delegate to avoid closure allocation.
Install
dotnet add package Soenneker.Invocations.Actions
Usage
using Soenneker.Invocations.Actions;
var batch = new UploadBatch();
var invocation = new ActionInvocation(
static state => ((UploadBatch)state!).Flush(),
batch);
workQueue.Enqueue(invocation);
// Later:
ActionInvocation pending = workQueue.Dequeue();
pending.Invoke();
Invoke() passes the stored State to the action. It is synchronous, can be called repeatedly, and does not catch exceptions thrown by the action.
Use a static lambda or static method when avoiding closure capture matters. A capturing lambda still works, but then the compiler creates the closure this type is intended to avoid. Value-type state is boxed because state is stored as object.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.35 | 99 | 11/18/2026 |
| 11.0.34 | 113 | 11/11/2026 |
| 11.0.33 | 137 | 10/27/2026 |
| 11.0.32 | 112 | 10/26/2026 |
| 11.0.31 | 112 | 10/26/2026 |
| 4.0.30 | 105 | 10/14/2026 |
| 4.0.29 | 102 | 10/14/2026 |
| 4.0.24 | 116 | 10/12/2026 |
| 4.0.23 | 108 | 10/12/2026 |
| 4.0.22 | 114 | 10/11/2026 |
| 4.0.21 | 142 | 9/24/2026 |
| 4.0.20 | 133 | 9/15/2026 |
| 4.0.19 | 119 | 9/12/2026 |
| 4.0.18 | 158 | 8/30/2026 |
| 4.0.17 | 140 | 8/29/2026 |
| 4.0.16 | 115,604 | 7/28/2026 |
| 4.0.15 | 73,505 | 7/16/2026 |
| 4.0.14 | 94,986 | 6/18/2026 |
| 4.0.13 | 93,614 | 6/5/2026 |
| 4.0.12 | 156 | 6/5/2026 |
Configure .NET CI defaults and daily source scans