Merge branch 'main' into crickman/dotnet-sample-improvements

This commit is contained in:
Chris Rickman
2026-02-19 18:39:21 -08:00
96 changed files with 424 additions and 464 deletions
@@ -35,7 +35,7 @@ public static class Program
// Execute the workflow and save checkpoints
await using StreamingRun checkpointedRun = await InProcessExecution
.StreamAsync(workflow, new SignalWithNumber(NumberSignal.Init), checkpointManager)
.RunStreamingAsync(workflow, new SignalWithNumber(NumberSignal.Init), checkpointManager)
;
await foreach (WorkflowEvent evt in checkpointedRun.WatchStreamAsync())
{
@@ -98,8 +98,7 @@ public static class Program
private static ExternalResponse HandleExternalRequest(ExternalRequest request)
{
var signal = request.DataAs<SignalWithNumber>();
if (signal is not null)
if (request.TryGetDataAs<SignalWithNumber>(out var signal))
{
switch (signal.Signal)
{