Class ReactorInvoker
Represents an implementation of IReactorInvoker.
public class ReactorInvoker : IReactorInvoker
- Inheritance
-
ReactorInvoker
- Implements
- Inherited Members
Remarks
Initializes a new instance of the ReactorInvoker class.
Constructors
ReactorInvoker(IEventTypes, IReactorMiddlewares, Type, ActivatedArtifact, ILogger<ReactorInvoker>)
Represents an implementation of IReactorInvoker.
public ReactorInvoker(IEventTypes eventTypes, IReactorMiddlewares middlewares, Type targetType, ActivatedArtifact activatedReactor, ILogger<ReactorInvoker> logger)
Parameters
eventTypesIEventTypesIEventTypes for mapping types.
middlewaresIReactorMiddlewaresIReactorMiddlewares to call.
targetTypeTypeType of Reactor.
activatedReactorActivatedArtifactThe ActivatedArtifact activated reactor.
loggerILogger<ReactorInvoker>ILogger for logging.
Remarks
Initializes a new instance of the ReactorInvoker class.
Methods
GetEventTypesFor(IEventTypes, Type)
Gets all EventType for a specific reactor type.
public static IImmutableList<EventType> GetEventTypesFor(IEventTypes eventTypes, Type reactorType)
Parameters
eventTypesIEventTypesIEventTypes for looking up event types.
reactorTypeTypeThe reactor Type to get event types for.
Returns
- IImmutableList<EventType>
Collection of discovered EventType.
Invoke(object, EventContext)
Invoke the Reactor.
public Task<Catch> Invoke(object content, EventContext eventContext)
Parameters
contentobjectEvent content to invoke with.
eventContextEventContextEventContext for the event.