Class EventSourceTypeValuesProvider

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

Represents an implementation of IReactorContextValuesProvider that provides the event source type.

public class EventSourceTypeValuesProvider : IReactorContextValuesProvider
Inheritance
EventSourceTypeValuesProvider
Implements
Inherited Members
Extension Methods

Remarks

Reads the EventSourceTypeAttribute from the reactor type. No value is provided when the attribute is absent.

Constructors

EventSourceTypeValuesProvider()

public EventSourceTypeValuesProvider()

Methods

Provide(object, EventContext)

Gets the reactor context values.

public ReactorContextValues Provide(object reactor, EventContext eventContext)

Parameters

reactor object

The reactor instance whose side-effect events are being appended.

eventContext EventContext

The EventContext of the triggering event.

Returns

ReactorContextValues

The reactor context values.