Vitreous namespace
Namespaces
Section titled “Namespaces”Classes
Section titled “Classes”Represents a strongly-typed error produced by a command or query handler.
Mutable bag of annotations written by pipeline behaviors during a single dispatch. Current holds the instance for the current async call chain.
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.
Extension methods on ISender and Result<T> that make working with stream queries more ergonomic.
Provides ambient access to the PipelineAnnotations for the current
async message dispatch. Scoped to the async execution context — safe across await.
Configuration options for the Vitreous mediator.
VitreousServiceCollectionExtensions
Extension methods for registering Vitreous in the ASP.NET Core DI container.
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));
Structs
Section titled “Structs”Represents the outcome of a command that does not return a value. This is a discriminated union: either a success or an Error.
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.
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.
Controls how INotificationHandler<TNotification> instances are invoked when a notification is published.