Table of Contents

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 int

The recipe ID.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(Recipe Value, MessageContext Context)>

A task that represents the API request.