Interface ICanProvideEventStreamId
- Namespace
- Cratis.Chronicle.Events
- Assembly
- Cratis.Chronicle.dll
Defines a reactor that can dynamically provide the EventStreamId to use when appending side-effect events returned from handler methods.
public interface ICanProvideEventStreamId
- Extension Methods
Remarks
Implement this interface on a reactor class to supply a runtime stream ID. For a fixed compile-time value, apply the EventStreamIdAttribute to the reactor type instead. When both this interface and the attribute are present on the same reactor type, the interface takes priority and the attribute value is ignored.
Methods
GetEventStreamId()
Gets the EventStreamId to use when appending side-effect events.
EventStreamId GetEventStreamId()