TaskHub.Shared

Response

TaskHub.Shared.Response is a telemetry-aware Result Pattern implementation module, used across the TaskHub microservices to represent outcomes of operations in a consistent, explicit, and type-safe way. The module is designed for:

Core Idea

The module intentionly separates values-less and value-bearing results and introduces a control adaptation layer between them. This prevents:

Result format

All results share a common structure:

Result Types

Result

Result represents an operation outcome without a value. Used for:

ValueResult

ValueResult<T> represents an operation outcome with a value of type T. Used for:

OpResult

OpResult represents a value-less operation result and acts as a canonical adapter between result forms. OpResult exists to:

Observability

All result types integrate with OpenTelemetry:

Summary