예제 #1
0
 private void HandleScorecardCreated(ScorecardCreated @event)
 {
     State = new Scorecard(@event);
 }
예제 #2
0
 private async Task HandleScorecardCreatedAsync(ScorecardCreated @event)
 {
     await Task.WhenAll(
         ScorecardProjectionManager.CreateProjectionAsync(@event),
         ScorecardInfoProjectionManager.CreateProjectionAsync(new ScorecardInfoCreated(new ScorecardInfo(@event))));
 }