Skip to content

Commit

Permalink
docs: fix formatting (#3124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Broderick-Westrope authored Oct 3, 2024
1 parent 487db4d commit 247d3f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/develop/dotnet/message-passing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
```

Expand Down Expand Up @@ -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<string> MyUpdateAsync(UpdateInput updateInput)
{
await Workflow.WaitConditionAsync(() => ReadyForUpdateToExecute(updateInput));
// ...
}
[WorkflowUpdate]
public async Task<string> MyUpdateAsync(UpdateInput updateInput)
{
await Workflow.WaitConditionAsync(() => ReadyForUpdateToExecute(updateInput));
// ...
}
```

Remember: Handlers can execute before the main Workflow method starts.
Expand Down

0 comments on commit 247d3f3

Please sign in to comment.