Method GetRecipeById
- Namespace
- GuildWars2.Hero.Crafting.Recipes
- Assembly
- GuildWars2.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
recipeIdintThe recipe ID.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(Recipe Value, MessageContext Context)>
A task that represents the API request.