ESCd.Extensions.OperationInvoker
2.2.6
dotnet add package ESCd.Extensions.OperationInvoker --version 2.2.6
NuGet\Install-Package ESCd.Extensions.OperationInvoker -Version 2.2.6
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="ESCd.Extensions.OperationInvoker" Version="2.2.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ESCd.Extensions.OperationInvoker" Version="2.2.6" />
<PackageReference Include="ESCd.Extensions.OperationInvoker" />
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 ESCd.Extensions.OperationInvoker --version 2.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ESCd.Extensions.OperationInvoker, 2.2.6"
#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 ESCd.Extensions.OperationInvoker@2.2.6
#: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=ESCd.Extensions.OperationInvoker&version=2.2.6
#tool nuget:?package=ESCd.Extensions.OperationInvoker&version=2.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ESCd.Extensions.OperationInvoker
A lightweight CQRS-like service pattern.
Basic Usage
- Define an Operation:
public static class WeatherOperation
{
public record GetForecast : IOperation<WeatherForecast[]>;
}
- Handle the Operation:
internal sealed class GetForecastHandler : IOperationHandler<WeatherOperation.GetForecast, WeatherForecast[]>
{
public async ValueTask<WeatherForecast[]> Invoke( WeatherOperation.GetForecast operation, CancellationToken cancellation )
{
ArgumentNullException.ThrowIfNull( operation );
return ...;
}
}
- Add the Handler:
public static IServiceCollection AddOperations(this IServiceCollection services)
=> services.AddOperationHandler<GetForecastHandler>();
- Invoke the Operation:
public sealed class WeatherController
{
[HttpGet("/api/weather")]
public async Task<ActionResult> Weather([FromServices] IOperationInvoker operations )
{
var forecast = await operations.Invoke(
new WeatherOperation.GetForecast(),
HttpContext.RequestAborted);
return Ok(forecast);
}
}
Something missing, still have questions? Please open an Issue or submit a PR!
| 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 is compatible. 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. 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
-
net8.0
-
net9.0
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 |
|---|---|---|
| 2.2.6 | 122 | 3/12/2026 |
| 2.2.5 | 103 | 3/10/2026 |
| 2.2.4 | 167 | 2/10/2026 |
| 2.2.3 | 138 | 1/13/2026 |
| 2.2.2 | 475 | 12/9/2025 |
| 2.2.1 | 225 | 12/4/2025 |
| 2.2.0 | 336 | 11/11/2025 |
| 2.1.0 | 255 | 10/14/2025 |
| 2.1.0-rc.1 | 157 | 10/14/2025 |
| 2.0.2 | 271 | 9/10/2025 |
| 2.0.1 | 316 | 8/5/2025 |
| 2.0.0 | 417 | 7/20/2025 |
| 2.0.0-rc.1 | 177 | 7/13/2025 |
| 1.0.10 | 286 | 7/8/2025 |
| 1.0.9 | 386 | 6/11/2025 |
| 1.0.8 | 299 | 5/13/2025 |
| 1.0.8-rc.0.1 | 165 | 4/30/2025 |
| 1.0.7 | 210 | 4/30/2025 |
| 1.0.6 | 230 | 2/11/2025 |
| 1.0.5 | 199 | 2/1/2025 |
Loading failed