public ProcessManagerHost(EventStoreClient eventStore, IMessageTypeMapper messageTypeMapper, string checkpointStreamName, ProcessManagerEventHandlerModule eventHandlerModule) { _eventStore = eventStore; _messageTypeMapper = messageTypeMapper; _checkpointStreamName = checkpointStreamName; _stopped = new CancellationTokenSource(); _subscribed = 0; _subscription = null; _stoppedRegistration = null; _dispatcher = new ProcessManagerEventDispatcher(eventHandlerModule); _checkpoint = Checkpoint.None; }
public ProcessManagerEventDispatcher(ProcessManagerEventHandlerModule eventHandlerModule) : this(ProcessManagerEventResolve.WhenEqualToHandlerMessageType(eventHandlerModule)) { }