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);
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);