private async Task HandleCourseUpdatedAsync(CourseUpdated @event) { await Task.WhenAll( CourseProjectionManager.UpdateProjectionAsync(@event), CourseInfoProjectionManager.UpdateProjectionAsync(new CourseInfoUpdated(new CourseInfo(@event)))); }
private async Task HandleCourseDeletedAsync(Deleted <Course> @event) { await Task.WhenAll( CourseProjectionManager.DeleteProjectionAsync(@event), CourseInfoProjectionManager.DeleteProjectionAsync(new Deleted <CourseInfo>(@event.PlayerId, @event.Id))); }