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