예제 #1
0
 public static Task <Game> FindGameOrThrowAsync(this IGameContextReadOnly gc, IHaveGameId request)
 => Wrap(async() => {
     await gc.Load(request.GameId).ConfigureAwait(false);
     return(await gc.Games.FindOrThrowAsync(request.GameId).ConfigureAwait(false));
 }, request.GameId);
예제 #2
0
 public static Task <Game> FindGameOrThrowAsync(this IGameContextReadOnly gc, Guid id) => Wrap(async() => {
     await gc.Load(id).ConfigureAwait(false);
     return(await gc.Games.FindOrThrowAsync(id).ConfigureAwait(false));
 }, id);