Skip to content

CHR0071: Batch method observes no event types

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.

Error

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.

  • CHR0070: [Observes<T>] is only for batch methods.
  • CHR0077: Batch method matches an event type it does not observe.