Exemplo n.º 1
0
 public string Map(DispatchedEvent e)
 {
     return(partionKeyMappers[e.Metadata.EventTypeId](e));
 }
Exemplo n.º 2
0
 public string GetPartitioningKey(DispatchedEvent dispatchedEvent)
 {
     return(mapping.Map(dispatchedEvent));
 }
Exemplo n.º 3
0
 public Task Dispatch(DispatchedEvent dispatchedEvent, object state)
 {
     return(mapping.Dispatch(dispatchedEvent, (TState)state));
 }
Exemplo n.º 4
0
 public Task Dispatch(DispatchedEvent dispatchedEvent, TState state)
 {
     return(appliers[dispatchedEvent.Metadata.EventTypeId](dispatchedEvent, state));
 }