Skip to content

Vitreous namespace

Vitreous.Abstractions

Vitreous.Caching

Vitreous.DevUI

Vitreous.FluentValidation

Error

Represents a strongly-typed error produced by a command or query handler.

PipelineAnnotations

Mutable bag of annotations written by pipeline behaviors during a single dispatch. Current holds the instance for the current async call chain.

SensitiveAttribute

Marks a property (or a record’s positional parameter) as holding sensitive data. Diagnostic tooling such as Vitreous.DevUI masks its value instead of recording it.

StreamQueryExtensions

Extension methods on ISender and Result<T> that make working with stream queries more ergonomic.

VitreousContext

Provides ambient access to the PipelineAnnotations for the current async message dispatch. Scoped to the async execution context — safe across await.

VitreousOptions

Configuration options for the Vitreous mediator.

VitreousServiceCollectionExtensions

Extension methods for registering Vitreous in the ASP.NET Core DI container.

VitreousTelemetry

The names of the ActivitySource and Meter that Vitreous reports dispatches to. Subscribe to them to see commands, queries, streams and notifications in OpenTelemetry:

builder.Services.AddOpenTelemetry()
    .WithTracing(t => t.AddSource(VitreousTelemetry.ActivitySourceName))
    .WithMetrics(m => m.AddMeter(VitreousTelemetry.MeterName));

Result

Represents the outcome of a command that does not return a value. This is a discriminated union: either a success or an Error.

Result<T>

Represents the outcome of a command or query that returns a value of type T. This is a discriminated union: either a success value or an Error.

Unit

Represents the absence of a meaningful value.

Used as the TResult type parameter for void commands so they participate in the same [IPipelineBehavior<TMessage, TResult>](/Vitreous/api/vitreous/abstractions/ipipelinebehavior-2/) pipeline as commands that return a value. Behaviors written against IPipelineBehavior<TMessage, TResult> automatically apply to void commands when registered as open generics — no separate ICommandPipelineBehavior implementation is needed.

NotificationPublishStrategy

Controls how INotificationHandler<TNotification> instances are invoked when a notification is published.