Skip to content

Commit 9f9deb7

Browse files
update dotnet to DaprWorkflowClient (#3789)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
1 parent 37bb85a commit 9f9deb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ builder.Services.AddDaprWorkflow(options =>
399399
WebApplication app = builder.Build();
400400

401401
// POST starts new order workflow instance
402-
app.MapPost("/orders", async (WorkflowEngineClient client, [FromBody] OrderPayload orderInfo) =>
402+
app.MapPost("/orders", async (DaprWorkflowClient client, [FromBody] OrderPayload orderInfo) =>
403403
{
404404
if (orderInfo?.Name == null)
405405
{
@@ -414,7 +414,7 @@ app.MapPost("/orders", async (WorkflowEngineClient client, [FromBody] OrderPaylo
414414
});
415415

416416
// GET fetches state for order workflow to report status
417-
app.MapGet("/orders/{orderId}", async (string orderId, WorkflowEngineClient client) =>
417+
app.MapGet("/orders/{orderId}", async (string orderId, DaprWorkflowClient client) =>
418418
{
419419
WorkflowState state = await client.GetWorkflowStateAsync(orderId, true);
420420
if (!state.Exists)

0 commit comments

Comments
 (0)