Table of Contents

Interface IReactorMiddleware

Namespace
Cratis.Chronicle.Reactors
Assembly
Cratis.Chronicle.dll

Defines a middleware that can be called during the observing of events.

public interface IReactorMiddleware

Methods

AfterInvoke(EventContext, object)

Invoked after the actual invoke.

Task AfterInvoke(EventContext eventContext, object @event)

Parameters

eventContext EventContext

EventContext for the event.

event object

The actual event that it will be called with.

Returns

Task

A Task representing the result of the asynchronous operation.

BeforeInvoke(EventContext, object)

Invoked before the actual invoke.

Task BeforeInvoke(EventContext eventContext, object @event)

Parameters

eventContext EventContext

EventContext for the event.

event object

The actual event that it will be called with.

Returns

Task

A Task representing the result of the asynchronous operation.