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