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