Example #1
0
 private static void ApplyProcessHandlerToContextMap <TEvent, TEventHandler, TCommand>(IBoundedContextModel contextMap) where TEventHandler : class
 {
     contextMap.WithEventHandler <TEvent, TEventHandler, TCommand>((e) => e.Id, c => c.GetType().GetProperties().First().GetValue(c).ToString());
 }
Example #2
0
 private static void ApplyEventHandlerToContextMap <TEvent, TEventHandler>(IBoundedContextModel contextMap) where TEventHandler : class
 {
     contextMap.WithEventHandler <TEvent, TEventHandler>((e) => e.Id);
 }