Anarchy.Toolkit.Hosting
2.0.0
See the version list below for details.
dotnet add package Anarchy.Toolkit.Hosting --version 2.0.0
NuGet\Install-Package Anarchy.Toolkit.Hosting -Version 2.0.0
<PackageReference Include="Anarchy.Toolkit.Hosting" Version="2.0.0" />
<PackageVersion Include="Anarchy.Toolkit.Hosting" Version="2.0.0" />
<PackageReference Include="Anarchy.Toolkit.Hosting" />
paket add Anarchy.Toolkit.Hosting --version 2.0.0
#r "nuget: Anarchy.Toolkit.Hosting, 2.0.0"
#:package Anarchy.Toolkit.Hosting@2.0.0
#addin nuget:?package=Anarchy.Toolkit.Hosting&version=2.0.0
#tool nuget:?package=Anarchy.Toolkit.Hosting&version=2.0.0
Anarchy.Toolkit.Hosting
Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Hosting · Package catalog
Generic startup and entry-point infrastructure for jobs and worker processes.
dotnet add package Anarchy.Toolkit.Hosting
- Implement
IStartupand useUseStartup<TStartup>(appRunnerType)to compose a host. - Build jobs and workers with
JobStartupBase,JobEntryPointBase,WorkerEntryPointBaseandAppHostBuilder. - Override
ConfigureAppConfigurationto select the application's configuration sources;DiFactory<TAppSettingsDiModule, TAppSettings>builds the service container.
When to use it
Use Hosting for the composition and lifecycle of a job or worker that is not itself an HTTP API. It separates application startup and service registration from the executable entry point, allowing the same conventions to be used in different hosting environments.
How to use it
- Define your settings and settings module using
Anarchy.Toolkit.Configuration. - Implement an
IStartupor derive from the relevant startup base. Register application services and any toolkit modules in the startup's service-configuration hook. - Create an entry point using the appropriate job or worker base; run the host and dispose it when the process exits. Select configuration sources in
ConfigureAppConfigurationwhen the defaults are insufficient.
See the runnable worker startup, worker entry point, and Lambda job for concrete implementations. For REST endpoints, use Anarchy.Toolkit.Web; for long-running worker and health primitives, add Hosting.Workers.
See the sample applications and toolkit overview.
Releases
2.0.0
- feat(automation): establish onboarding and layering conventions
- feat(telemetry)!: introduce provider-neutral application telemetry
- refactor(packages)!: restructure persistence and automation packages
- refactor(infrastructure.correlationid)!: decouple correlation scopes from Serilog
- refactor(core)!: reshape telemetry, event and health contracts
- refactor(telemetry)!: remove legacy APIs and simplify namespaces
1.1.1
- docs(packages): identify each package's pillar and layer
- build(packages): attribute the copyright to Leandro Melão Medeiros
- build: relicense under Apache-2.0 and update the package metadata
1.1.0
- build(deps): upgrade Swashbuckle.AspNetCore to 11.0.1 and Microsoft.OpenApi to 3.11.1
1.0.7
- docs: expand XML docblocks across all projects for the DocFX API reference
1.0.6
- refactor(src): clean up code style across library packages
- chore(deps): update AWS SDK, Lambda ASP.NET Core server and MySqlConnector packages
1.0.5
- chore(deps): update AWS SDK packages
1.0.3
- build: migrate local automation to build tooling
1.0.2
- docs: expand package guides and release histories
- chore(deps): update AWS, Polly, and xUnit packages
1.0.1
- Added a package-specific NuGet README.
1.0.0
- Introduced the startup contract, host builder, dependency-injection factory and job and worker entry-point bases.
| 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. |
-
net10.0
- Amazon.Extensions.Configuration.SystemsManager (>= 7.1.1)
- Amazon.Lambda.APIGatewayEvents (>= 3.0.1)
- Amazon.Lambda.AspNetCoreServer (>= 10.3.2)
- Amazon.Lambda.Core (>= 3.4.0)
- Anarchy.Toolkit.Configuration (>= 2.0.0)
- Anarchy.Toolkit.Core (>= 2.0.0)
- AWSSDK.Core (>= 4.1.1.2)
- AWSSDK.KeyManagementService (>= 4.1.1.1)
- AWSSDK.SecretsManager (>= 4.1.1.2)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Caching.Memory (>= 10.0.15)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Configuration.Json (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Diagnostics (>= 10.0.15)
- Microsoft.Extensions.Hosting (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Hosting.Systemd (>= 10.0.15)
- Microsoft.Extensions.Logging (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.15)
- Microsoft.Identity.Client (>= 4.92.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Anarchy.Toolkit.Hosting:
| Package | Downloads |
|---|---|
|
Anarchy.Toolkit.Web
Shared REST API pipeline: startup bases, entry points, middleware, auth, swagger, and presentation helpers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.