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
                    
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.Invocations.Actions" Version="11.0.35" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Invocations.Actions" Version="11.0.35" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Invocations.Actions" />
                    
Project file
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.Invocations.Actions --version 11.0.35
                    
#r "nuget: Soenneker.Invocations.Actions, 11.0.35"
                    
#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.Invocations.Actions@11.0.35
                    
#: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.Invocations.Actions&version=11.0.35
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Invocations.Actions&version=11.0.35
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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
Loading failed

Configure .NET CI defaults and daily source scans