From 247d3f3f536345012217cd51b9a4e59713c93bad Mon Sep 17 00:00:00 2001 From: Broderick Westrope Date: Fri, 4 Oct 2024 04:46:44 +1000 Subject: [PATCH] docs: fix formatting (#3124) --- docs/develop/dotnet/message-passing.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/develop/dotnet/message-passing.mdx b/docs/develop/dotnet/message-passing.mdx index eb3540c65d..7de9b8ab92 100644 --- a/docs/develop/dotnet/message-passing.mdx +++ b/docs/develop/dotnet/message-passing.mdx @@ -316,7 +316,7 @@ To send an Update to a Workflow Execution, you can: This code fetches an Update result: ```csharp -var previousLanguage = await workflowHandle.ExecuteUpdateAsync( + var previousLanguage = await workflowHandle.ExecuteUpdateAsync( wf => wf.SetCurrentLanguageAsync(GreetingWorkflow.Language.Chinese)); ``` @@ -479,12 +479,12 @@ Consider a `ReadyForUpdateToExecute` method that runs before your Update handler The [`Workflow.WaitConditionAsync`](https://dotnet.temporal.io/api/Temporalio.Workflows.Workflow.html?#Temporalio_Workflows_Workflow_WaitConditionAsync_System_Func_System_Boolean__System_Int32_System_Nullable_System_Threading_CancellationToken__) call waits until your condition is met: ```csharp - [WorkflowUpdate] - public async Task MyUpdateAsync(UpdateInput updateInput) - { - await Workflow.WaitConditionAsync(() => ReadyForUpdateToExecute(updateInput)); - // ... - } +[WorkflowUpdate] +public async Task MyUpdateAsync(UpdateInput updateInput) +{ + await Workflow.WaitConditionAsync(() => ReadyForUpdateToExecute(updateInput)); + // ... +} ``` Remember: Handlers can execute before the main Workflow method starts.