From 9f9deb7349ce99fd107e478c25a6c8e107d82808 Mon Sep 17 00:00:00 2001 From: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Date: Mon, 9 Oct 2023 01:48:20 -0400 Subject: [PATCH] update dotnet to DaprWorkflowClient (#3789) Signed-off-by: Hannah Hunter Co-authored-by: Mark Fussell --- .../building-blocks/workflow/howto-author-workflow.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md b/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md index ada6335ec44..98f0df760e9 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md +++ b/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md @@ -399,7 +399,7 @@ builder.Services.AddDaprWorkflow(options => WebApplication app = builder.Build(); // POST starts new order workflow instance -app.MapPost("/orders", async (WorkflowEngineClient client, [FromBody] OrderPayload orderInfo) => +app.MapPost("/orders", async (DaprWorkflowClient client, [FromBody] OrderPayload orderInfo) => { if (orderInfo?.Name == null) { @@ -414,7 +414,7 @@ app.MapPost("/orders", async (WorkflowEngineClient client, [FromBody] OrderPaylo }); // GET fetches state for order workflow to report status -app.MapGet("/orders/{orderId}", async (string orderId, WorkflowEngineClient client) => +app.MapGet("/orders/{orderId}", async (string orderId, DaprWorkflowClient client) => { WorkflowState state = await client.GetWorkflowStateAsync(orderId, true); if (!state.Exists)