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 : IAsyncDisposable
- Inherited Members
- Extension Methods
Methods
AfterInvoke(EventContext, object)
Invoked after the actual invoke.
Task AfterInvoke(EventContext eventContext, object @event)
Parameters
eventContextEventContextEventContext for the event.
eventobjectThe actual event that it will be called with.
Returns
AfterInvoke(ReactorId, EventContext, object)
Invoked after the actual invoke, for a known reactor.
Task AfterInvoke(ReactorId reactorId, EventContext eventContext, object @event)
Parameters
reactorIdReactorIdThe ReactorId of the reactor the event was observed for.
eventContextEventContextEventContext for the event.
eventobjectThe actual event that it will be called with.
Returns
BeforeInvoke(EventContext, object)
Invoked before the actual invoke.
Task BeforeInvoke(EventContext eventContext, object @event)
Parameters
eventContextEventContextEventContext for the event.
eventobjectThe actual event that it will be called with.
Returns
BeforeInvoke(ReactorId, EventContext, object)
Invoked before the actual invoke, for a known reactor.
Task BeforeInvoke(ReactorId reactorId, EventContext eventContext, object @event)
Parameters
reactorIdReactorIdThe ReactorId of the reactor the event is being observed for.
eventContextEventContextEventContext for the event.
eventobjectThe actual event that it will be called with.