Table of Contents

Class EventSequenceAttribute

Namespace
Cratis.Chronicle.EventSequences
Assembly
Cratis.Chronicle.dll

Attribute to specify which event sequence a type uses as its event source.

[AttributeUsage(AttributeTargets.Class)]
public class EventSequenceAttribute : Attribute
Inheritance
EventSequenceAttribute
Derived
Inherited Members

Remarks

Apply this attribute to a Reactor, Reducer, or model-bound projection read model type to override the event sequence that the observer reads from. When set, auto-inbox routing and auto-subscription are both suppressed — the explicit value is always honored.

The attribute targets any class, but is meaningful only on observer and read model types. Use EventLogAttribute as a convenience alternative when pinning to the default event log.

Initializes a new instance of the EventSequenceAttribute class.

Constructors

EventSequenceAttribute(string)

Attribute to specify which event sequence a type uses as its event source.

public EventSequenceAttribute(string sequence)

Parameters

sequence string

String representation of an EventSequenceId.

Remarks

Apply this attribute to a Reactor, Reducer, or model-bound projection read model type to override the event sequence that the observer reads from. When set, auto-inbox routing and auto-subscription are both suppressed — the explicit value is always honored.

The attribute targets any class, but is meaningful only on observer and read model types. Use EventLogAttribute as a convenience alternative when pinning to the default event log.

Initializes a new instance of the EventSequenceAttribute class.

Properties

Sequence

Gets the EventSequenceId to use.

public EventSequenceId Sequence { get; }

Property Value

EventSequenceId