CHR0071: Batch method observes no event types
Rule description
Section titled “Rule description”A method whose first parameter is an EventBatch is a batch method, whatever its name. It receives only the events of the types its [Observes<TEvent>] attributes name, so without one it would never be called. Chronicle refuses to register the observer.
Severity
Section titled “Severity”Error
How to fix
Section titled “How to fix”Add [Observes<TEvent>] to the method once for each event type it handles. If the method is a helper that happens to take an EventBatch, move it out of the reactor or reducer, or take the events as another type.
Related rules
Section titled “Related rules”- CHR0070:
[Observes<T>]is only for batch methods. - CHR0077: Batch method matches an event type it does not observe.