public string Map(DispatchedEvent e) { return(partionKeyMappers[e.Metadata.EventTypeId](e)); }
public string GetPartitioningKey(DispatchedEvent dispatchedEvent) { return(mapping.Map(dispatchedEvent)); }
public Task Dispatch(DispatchedEvent dispatchedEvent, object state) { return(mapping.Dispatch(dispatchedEvent, (TState)state)); }
public Task Dispatch(DispatchedEvent dispatchedEvent, TState state) { return(appliers[dispatchedEvent.Metadata.EventTypeId](dispatchedEvent, state)); }