public void Apply(BookRated bookRated) { RatingSum += bookRated.Rating; RatingCount += 1; }
static Task Apply(Metadata meta, BookRated bookRated, State s) { s.Apply(bookRated); return(Task.CompletedTask); }
public void Apply(BookRated bookRated) { RatingSum += bookRated.Rating; RatingCount += 1; }
static Task Apply(Metadata meta, BookRated bookRated, State s) { s.Apply(bookRated); return(Task.CompletedTask); }