Anarchy.Toolkit.Core
1.1.0
See the version list below for details.
dotnet add package Anarchy.Toolkit.Core --version 1.1.0
NuGet\Install-Package Anarchy.Toolkit.Core -Version 1.1.0
<PackageReference Include="Anarchy.Toolkit.Core" Version="1.1.0" />
<PackageVersion Include="Anarchy.Toolkit.Core" Version="1.1.0" />
<PackageReference Include="Anarchy.Toolkit.Core" />
paket add Anarchy.Toolkit.Core --version 1.1.0
#r "nuget: Anarchy.Toolkit.Core, 1.1.0"
#:package Anarchy.Toolkit.Core@1.1.0
#addin nuget:?package=Anarchy.Toolkit.Core&version=1.1.0
#tool nuget:?package=Anarchy.Toolkit.Core&version=1.1.0
Anarchy.Toolkit.Core
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
1.1.0
- feat:
LocalPorts(moved from Build.Cli), now generic, with a configurable first port,IsAvailableandFindAvailable
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.
| 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)
- 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.
Initial release.