Shuttle.Extensions.Options
21.0.0-alpha
Prefix Reserved
This is a prerelease version of Shuttle.Extensions.Options.
dotnet add package Shuttle.Extensions.Options --version 21.0.0-alpha
NuGet\Install-Package Shuttle.Extensions.Options -Version 21.0.0-alpha
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="Shuttle.Extensions.Options" Version="21.0.0-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shuttle.Extensions.Options" Version="21.0.0-alpha" />
<PackageReference Include="Shuttle.Extensions.Options" />
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 Shuttle.Extensions.Options --version 21.0.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Shuttle.Extensions.Options, 21.0.0-alpha"
#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 Shuttle.Extensions.Options@21.0.0-alpha
#: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=Shuttle.Extensions.Options&version=21.0.0-alpha&prerelease
#tool nuget:?package=Shuttle.Extensions.Options&version=21.0.0-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Shuttle.Extensions.Options
This package provides extensions for configuring and validating AsyncEvent options in .NET applications.
Usage
public class OperationEventArgs(string name)
{
public string Name { get; } = name;
}
public class ApplicationOptions
{
public AsyncEvent<OperationEventArgs> Operation { get; set; } = new();
// other options...
}
public class Program
{
public static async Task Main(string[] args)
{
var serviceProvider = new ServiceCollection()
.Configure<ApplicationOptions>(options =>
{
options.Operation += async args =>
{
Console.WriteLine(args.Name);
await Task.CompletedTask;
};
})
.AddSingleton<IApplicationService, ApplicationService>()
.BuildServiceProvider();
_applicationService = serviceProvider.GetRequiredService<IApplicationService>();
await _applicationService.WorkAsync();
}
}
| 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
- Shuttle.Core.Contract (>= 21.0.0-alpha)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Shuttle.Extensions.Options:
| Package | Downloads |
|---|---|
|
Shuttle.Core.Threading
Thread-based processing. |
|
|
Shuttle.Core.Pipelines
Observable event-based pipelines based broadly on pipes and filters. |
|
|
Shuttle.Core.Mediator
Mediator pattern implementation. |
|
|
Shuttle.Access.AspNetCore
Authorization middleware for web API endpoints using Shuttle.Access. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 21.0.0-alpha | 106 | 1/18/2026 |
| 1.0.0 | 606 | 8/31/2025 |