EventFactory

public class EventFactory

Produces events.

Constructors

Link copied to clipboard
protected void EventFactory(EventOrigin origin, Any producerId)

Functions

Link copied to clipboard
public Event createEvent(EventMessage message, Version version)
Creates an event for the passed event message.
Link copied to clipboard
public Event createRejectionEvent(RejectionMessage message, Version version, RejectionEventContext rejectionContext)
Creates a rejection event for the passed rejection message.
Link copied to clipboard
public static EventFactory forImport(ActorContext actorContext, Any producerId)
Creates a new event factory for producing events to be imported into a Bounded Context.
Link copied to clipboard
public static EventFactory on(MessageEnvelope origin, Any producerId)
Creates a new event factory for producing events in response to the passed message.