Table of Contents

Namespace SimpleMediator

Classes

CommandActivityPipelineBehavior<TCommand, TResponse>

Creates diagnostic activities for commands and annotates functional failures.

CommandMetricsPipelineBehavior<TCommand, TResponse>

Records duration and outcome metrics for mediator commands.

MediatorErrorCodes

Canonical error codes emitted by the mediator pipeline.

MediatorErrorExtensions

Helper extensions to extract metadata from MediatorError.

MediatorErrors

Factory for the standard errors produced by SimpleMediator.

MediatorMetrics

Default implementation that exposes metrics via System.Diagnostics.Metrics.

NotificationDispatchOptions

Configuration options for notification dispatch behavior.

QueryActivityPipelineBehavior<TQuery, TResponse>

Emits tracing activities for queries and labels functional failures.

QueryMetricsPipelineBehavior<TQuery, TResponse>

Records duration and outcome metrics for mediator queries.

RequestContext

Default implementation of IRequestContext.

ServiceCollectionExtensions

Extensions for registering SimpleMediator in an IServiceCollection.

SimpleMediator

Default IMediator implementation using Microsoft.Extensions.DependencyInjection.

SimpleMediatorConfiguration

Configures discovery and additional mediator components.

Structs

MediatorError

Minimal immutable mediator error representation with optional exception metadata.

Interfaces

ICommand

Convenience command variant that does not return an explicit payload.

ICommandHandler<TCommand>

Convenience interface for commands that do not return an additional value.

ICommandHandler<TCommand, TResponse>

Handles a concrete command and returns a functional response.

ICommandPipelineBehavior<TCommand>

Variant for commands without a specific response payload.

ICommandPipelineBehavior<TCommand, TResponse>

Specialises IPipelineBehavior<TRequest, TResponse> for commands.

ICommand<TResponse>

Represents a command flowing through the mediator.

IFunctionalFailureDetector

Allows the application to identify functional failures in mediator responses.

IMediator

Central coordinator used to send commands/queries and publish notifications.

IMediatorMetrics

Defines the metrics exposed by SimpleMediator.

INotification

Signal or event that can be published to multiple handlers.

INotificationHandler<TNotification>

Processes a notification published by the mediator using Railway Oriented Programming.

IPipelineBehavior<TRequest, TResponse>

Intercepts handler execution to apply cross-cutting logic.

IQuery

Convenience query variant that does not return a concrete value.

IQueryHandler<TQuery>

Convenience interface for queries that do not return additional data.

IQueryHandler<TQuery, TResponse>

Handles a query and produces the expected response.

IQueryPipelineBehavior<TQuery>

Variant for queries that do not return a concrete value.

IQueryPipelineBehavior<TQuery, TResponse>

Specialises IPipelineBehavior<TRequest, TResponse> for queries.

IQuery<TResponse>

Represents an immutable query that produces a result.

IRequestContext

Carries ambient context metadata through the mediator pipeline.

IRequestHandler<TRequest, TResponse>

Executes the logic associated with a specific request using Railway Oriented Programming.

IRequestPostProcessor<TRequest, TResponse>

Executes logic after the main handler for a given request.

IRequestPreProcessor<TRequest>

Executes logic before the main pipeline for a request.

IRequest<TResponse>

Represents a request routed to a single handler that produces a response.

IStreamPipelineBehavior<TRequest, TItem>

Intercepts streaming handler execution to apply cross-cutting logic on each item.

IStreamRequestHandler<TRequest, TItem>

Executes the logic associated with a streaming request using Railway Oriented Programming.

IStreamRequest<TItem>

Represents a streaming request that produces a sequence of items asynchronously.

Enums

NotificationDispatchStrategy

Defines how notifications are dispatched to handlers.

Delegates

RequestHandlerCallback<TResponse>

Represents the continuation of the pipeline inside a behavior while honouring the Zero Exceptions policy.

StreamHandlerCallback<TItem>

Represents the continuation of the streaming pipeline inside a behavior while honouring the Zero Exceptions policy.