public static Task <IGame?> GetAssignedGame(this IResolverContext context, Guid jobGuid) { ((ConcurrentDictionary <Guid, Guid>)context .ContextData["Snowflake.Support.GraphQL.FrameworkQueries.ResolverJobQueueMetadata.Store"]) .TryGetValue(jobGuid, out Guid gameGuid); if (gameGuid == default) { return(Task.FromResult <IGame?>(null)); } return(context.SnowflakeService <IGameLibrary>().GetGameAsync(gameGuid)); }