TaskHub.Observability.Metrics.Abstractions
2.3.31
dotnet add package TaskHub.Observability.Metrics.Abstractions --version 2.3.31
NuGet\Install-Package TaskHub.Observability.Metrics.Abstractions -Version 2.3.31
<PackageReference Include="TaskHub.Observability.Metrics.Abstractions" Version="2.3.31" />
<PackageVersion Include="TaskHub.Observability.Metrics.Abstractions" Version="2.3.31" />
<PackageReference Include="TaskHub.Observability.Metrics.Abstractions" />
paket add TaskHub.Observability.Metrics.Abstractions --version 2.3.31
#r "nuget: TaskHub.Observability.Metrics.Abstractions, 2.3.31"
#:package TaskHub.Observability.Metrics.Abstractions@2.3.31
#addin nuget:?package=TaskHub.Observability.Metrics.Abstractions&version=2.3.31
#tool nuget:?package=TaskHub.Observability.Metrics.Abstractions&version=2.3.31
TaskHub.Shared
TaskHub.Shared is a set of small, independent modules that act as the shared foundation for microservices. It provides shared primitives, abstractions, contracts, and infrastructure adapters designed around Domain-Driven Design (DDD) and Clean Architecture principles.
Overview
TaskHub.Shared contains the fundamental components and patterns used across all bounded contexts in TaskHub.
Modules
- TaskHub.Shared.ValueObjects — Common value objects (e.g.,
Email,PhoneNumber,Address,Coordinates) used across services. - TaskHub.Shared.Domain — Base entities, aggregates, domain events, and helpers for implementing rich domain models.
- TaskHub.Shared.Response — Unified result system (
Result,ValueResult<T>,ResultFactory) for consistent success/error handling. - TaskHub.Shared.Services.Abstractions — Common service interfaces for dependency inversion.
- TaskHub.Shared.Events.Abstractions — Domain event abstractions for cross-service communication and eventual consistency patterns.
Persistence
- TaskHub.Shared.Persistence.Abstractions — Interfaces for read/write repositories, unit of work, and persistence contracts.
- TaskHub.Shared.Persistence.EntityFramework — EntityFramework Core helpers, base configurations, and interceptors for database integration.
- TaskHub.Shared.Persistence.Outbox - Outbox pattern abstractions.
- TaskHub.Shared.Redis — Integration with Redis for caching and distributed state management.
Storage
- TaskHub.Shared.Storage.Abstractions — Abstractions for file/blob storage services.
- TaskHub.Shared.Storage.FileSystem — Implementation of file storage using the local file system.
Authorization
- TaskHub.Shared.Authorization.Abstractions — Authorization contracts, roles/permissions abstractions, and policies shared across services.
- TaskHub.Shared.Authorization.Identity — Identity-related models and helpers used by TaskHub services (users, claims, roles).
Tools
- TaskHub.Shared.Versioning — Shared conventions and helpers for API versioning across TaskHub microservices.
- TaskHub.Shared.RateLimiter — Reusable rate-limiting primitives and policies for protecting APIs and internal pipelines.
Pipeline
- TaskHub.Shared.Commands.Abstractions — Abstractions for the command pipeline.
- TaskHub.Shared.Commands.Implementation — Implementation in-process command bus with behavior orchestration.
Geocoding
- TaskHub.Shared.GeoCoding.Abstractions — Abstractions for geocoding providers.
- TaskHub.Shared.GeoCoding.Nominatim — Implementation of the geocoding service using the Nominatim API.
Networking
- TaskHub.Shared.Networking.Abstractions — Abstractions for HTTP client configurations, including interfaces for defining client settings and policies.
- TaskHub.Shared.Networking.Implementation — Configuration, refactoring and registering of HTTP clients with Polly-based resilience policies (retry, circuit breaker, timeout).
Refactoring
- TaskHub.Shared.Refactoring.Abstractions — Abstractions for service refactoring.
- TaskHub.Shared.Refactoring.Implementation — Implementations for service refactoring and dynamic dependency resolution.
Observability
Metrics
- TaskHub.Observability.Metrics.Abstractions — Abstractions and options for metrics collection (meters, counters, histograms) used across services.
- TaskHub.Observability.Metrics.Implementation — Metrics implementation built on top of prometheus-net.
Logging
- TaskHub.Observability.Logger — Logging implementation built on top of Serilog.
OpenTelemetry
- TaskHub.Observability.OpenTelemetry — Preconfigured OpenTelemetry setup (resource, exporters, processors) for metrics, traces, and logs (Tempo, Prometheus, Loki).
Swagger / OpenAPI
- TaskHub.Shared.Swagger — Common Swagger / OpenAPI configuration for ASP.NET Core services (conventions, filters, defaults).
Bootstrapping
- TaskHub.Shared.Bootstraper.Basic — Basic service bootstrapping (dependency injection, configuration, logging).
- TaskHub.Shared.Bootstraper.Full — Comprehensive service bootstrapping (all features, advanced configuration, etc.).
Design Principles
- DDD & Clean Architecture — Clear separation between abstractions and implementations.
- Lightweight by Design — Each project compiles into a minimal, focused package.
- Composability — Services import only the shared modules they actually depend on.
- Cross-Service Consistency — Unified patterns for results, commands, events, authorization, and observability (metrics, traces, logs).
Author
| 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
- prometheus-net (>= 8.2.1)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on TaskHub.Observability.Metrics.Abstractions:
| Package | Downloads |
|---|---|
|
TaskHub.Shared.Commands.Bus
Default in-process command bus implementation with behavior orchestration. |
|
|
TaskHub.Shared.Bootstraper
Opinionated startup helpers to compose modules into a services with minimal boilerplate. |
|
|
TaskHub.Observability.Metrics.Implementation
TaskHub.Shared is a lightweight, modular shared kernel for .NET microservices. Built on DDD and Clean Architecture principles, it provides reusable primitives, CQRS pipelines, observability integrations (OpenTelemetry), and infrastructure adapters (EF Core, Redis, GeoCoding). Perfect for scalable task management systems. Explore modules for consistent cross-service patterns. |
|
|
TaskHub.Shared.Refactoring.Implementation
Implementations for service refactoring and dynamic dependency resolution. |
|
|
TaskHub.Shared.Refactoring
Implementations for service refactoring and dynamic dependency resolution. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.31 | 0 | 12/28/2025 |
| 2.2.99 | 191 | 12/22/2025 |
| 2.2.91 | 179 | 12/20/2025 |
| 2.2.90 | 176 | 12/20/2025 |
| 2.2.89 | 178 | 12/20/2025 |
| 2.2.69 | 308 | 12/18/2025 |
| 2.2.43 | 262 | 12/15/2025 |
| 2.2.42 | 248 | 12/15/2025 |
| 2.2.35 | 169 | 12/13/2025 |
| 2.2.23 | 137 | 12/12/2025 |
| 2.1.77 | 673 | 12/1/2025 |
| 2.1.76 | 678 | 12/1/2025 |
| 2.1.75 | 130 | 11/29/2025 |
| 2.1.74 | 125 | 11/29/2025 |
| 2.1.73 | 128 | 11/29/2025 |
| 2.1.72 | 123 | 11/29/2025 |
| 2.1.71 | 127 | 11/29/2025 |