/// <summary> /// Initializes a new instance of the <see cref="DebuggingHandler"/> class. /// </summary> /// <param name="events">The <see cref="IArtifactMapper{T}" /> for <see cref="IEvent" />.</param> /// <param name="eventStore">The <see cref="IEventStore" />..</param> public DebuggingHandler(IArtifactMapper <IEvent> events, IEventStore eventStore) { _eventStore = eventStore; foreach (var @event in events.Artifacts) { Artifacts.Add(events.GetPathFor(@event), @event); } }
/// <summary> /// Initializes a new instance of the <see cref="DebuggingHandler"/> class. /// </summary> /// <param name="queries">me the qwuer.</param> /// <param name="queryCoordinator">me thq qvuer cord.</param> public DebuggingHandler(IArtifactMapper <IQuery> queries, IQueryCoordinator queryCoordinator) { _queries = queries; _queryCoordinator = queryCoordinator; foreach (var query in _queries.Artifacts) { Artifacts.Add(_queries.GetPathFor(query), query); } }
/// <summary> /// Initializes a new instance of the <see cref="DebuggingHandler"/> class. /// </summary> /// <param name="commands">The <see cref="IArtifactMapper{ICommand}"/> that discovers and maps all <see cref="ICommand"/>.</param> /// <param name="commandCoordinator">write somethingehre.</param> public DebuggingHandler(IArtifactMapper <ICommand> commands, ICommandCoordinator commandCoordinator) { _commands = commands; _commandCoordinator = commandCoordinator; foreach (var command in _commands.Artifacts) { Artifacts.Add(_commands.GetPathFor(command), command); } }