Table of Contents

Class ReactorMiddlewares

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

Represents an implementation of IReactorMiddlewares.

[Singleton]
public class ReactorMiddlewares : IReactorMiddlewares
Inheritance
ReactorMiddlewares
Implements
Inherited Members

Remarks

Initializes a new instance of the ReactorMiddlewares class.

Constructors

ReactorMiddlewares(IClientArtifactsProvider, IServiceProvider)

Represents an implementation of IReactorMiddlewares.

public ReactorMiddlewares(IClientArtifactsProvider clientArtifacts, IServiceProvider serviceProvider)

Parameters

clientArtifacts IClientArtifactsProvider

Optional IClientArtifactsProvider for the client artifacts.

serviceProvider IServiceProvider

IServiceProvider for resolving instances.

Remarks

Initializes a new instance of the ReactorMiddlewares class.

Methods

AfterInvoke(EventContext, object)

Invoked after the actual invoke.

public 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.

public 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.