Table of Contents

Class ProjectionOptions

Namespace
Excalibur.EventSourcing.Projections
Assembly
Excalibur.EventSourcing.dll

Per-projection configuration options for controlling projection behavior.

public sealed class ProjectionOptions
Inheritance
ProjectionOptions
Inherited Members

Remarks

Use via WithOptions(Action<ProjectionOptions>) to configure per-projection settings:

builder.AddProjection<OrderSummary>(p => p
    .Async()
    .WithOptions(o => o.WarningThreshold = TimeSpan.FromMilliseconds(200))
    .When<OrderPlaced>((proj, e) => { /* ... */ }));

Properties

WarningThreshold

Gets or sets the warning threshold for slow projection processing. If a projection batch exceeds this duration, a warning log is emitted.

public TimeSpan WarningThreshold { get; set; }

Property Value

TimeSpan

The warning threshold. Default is 100 milliseconds.