Method GetRecipeById
- Namespace
- GuildWars2.Hero.Crafting.Recipes
- Assembly
- GW2SDK.dll
GetRecipeById(int, MissingMemberBehavior, CancellationToken)
Retrieves a recipe by its ID.
public Task<(Recipe Value, MessageContext Context)> GetRecipeById(int recipeId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
recipeId
intThe recipe ID.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(Recipe Value, MessageContext Context)>
A task that represents the API request.