Table of Contents

Method GetRecipesByIngredientItemId

Namespace
GuildWars2.Hero.Crafting.Recipes
Assembly
GW2SDK.dll

GetRecipesByIngredientItemId(int, MissingMemberBehavior, CancellationToken)

Retrieves all recipes that require the specified ingredient.

public Task<(HashSet<Recipe> Value, MessageContext Context)> GetRecipesByIngredientItemId(int ingredientItemId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

ingredientItemId int

The item ID of the ingredient.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(HashSet<Recipe> Value, MessageContext Context)>

A task that represents the API request.