Table of Contents

Interface IReactorMiddlewares

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

Defines a system for working with middlewares that can be called during the observing of events.

public interface IReactorMiddlewares

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.