Anarchy.Toolkit.Core
2.0.1
dotnet add package Anarchy.Toolkit.Core --version 2.0.1
NuGet\Install-Package Anarchy.Toolkit.Core -Version 2.0.1
<PackageReference Include="Anarchy.Toolkit.Core" Version="2.0.1" />
<PackageVersion Include="Anarchy.Toolkit.Core" Version="2.0.1" />
<PackageReference Include="Anarchy.Toolkit.Core" />
paket add Anarchy.Toolkit.Core --version 2.0.1
#r "nuget: Anarchy.Toolkit.Core, 2.0.1"
#:package Anarchy.Toolkit.Core@2.0.1
#addin nuget:?package=Anarchy.Toolkit.Core&version=2.0.1
#tool nuget:?package=Anarchy.Toolkit.Core&version=2.0.1
Anarchy.Toolkit.Core
Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Core · Package catalog
Foundational, infrastructure-independent building blocks for .NET services.
dotnet add package Anarchy.Toolkit.Core
- Use helpers and extensions for strings, enums, dates and JSON, plus common exception primitives.
- Mark domain objects with
IEntity,IPersistedEntityorIDeepCloneableEntity<T>as appropriate. - Implement
IDependencyInjectionModuleand register it withUseModule<T>()orUseModule(module); use the keyed client-resolver abstractions when selecting clients by key.
When to use it
Reference Core from domain and application projects that need shared contracts without choosing a database, transport or hosting model. Use the more specific Core.* packages only when their corresponding concern is needed; concrete adapters belong at the application's composition root.
How to use it
- Implement the entity interfaces only where their contracts fit your domain model.
IPersistedEntityidentifies persisted entities, whileIDeepCloneableEntity<T>expresses cloning support. - Group related service registrations in an
IDependencyInjectionModule. Callservices.UseModule<TModule>(configuration, environment)for a parameterless module, or pass an instance toUseModulewhen it needs options. - Keep the module's configuration choices in the application: pass
IConfiguration, the host environment and any options factories from startup rather than hard-coding environment-specific values in domain code.
For a complete registration example using a concrete adapter, see the module guide.
See the toolkit overview and dependency-injection guide.
Releases
See the release notes for the complete release history.
| 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
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (25)
Showing the top 5 NuGet packages that depend on Anarchy.Toolkit.Core:
| Package | Downloads |
|---|---|
|
Anarchy.Toolkit.Core.Observability
Observability primitives over Serilog: the Observer facade (Logger, MeasurerBase and LogContext) with call-site logging and metrics helpers. |
|
|
Anarchy.Toolkit.Configuration
Application configuration: settings contracts, environment and secret handling, and the provider-neutral telemetry bootstrap (ModuleTelemetry) that applications extend through dependency injection. |
|
|
Anarchy.Toolkit.Core.Messaging.Abstractions
Message broker contracts: publisher abstraction, inbound/outbound messages, and envelope parsing. |
|
|
Anarchy.Toolkit.Infrastructure.CorrelationId
Provider-neutral correlation and attempt id propagation through async context, structured logging scopes, activity tags and ASP.NET Core middleware. |
|
|
Anarchy.Toolkit.Core.Persistence.Abstractions
Database abstraction layer: Unit of Work, async-local flow context, storage policy, and repository contracts. |
GitHub repositories
This package is not used by any popular GitHub repositories.
## Releases
### 2.0.1
- chore(build): Format package release notes property
### 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(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
- feat: `LocalPorts` (moved from Build.Cli), now generic, with a configurable first port, `IsAvailable` and `FindAvailable`
### 1.0.6
- docs: expand XML docblocks across all projects for the DocFX API reference
### 1.0.5
- refactor(src): clean up code style across library packages
### 1.0.3
- build: migrate local automation to build tooling
### 1.0.2
- docs: expand package guides and release histories
### 1.0.1
- Added a package-specific NuGet README.
### 1.0.0
- Introduced entity contracts, shared exceptions and dependency-injection module composition.