.NET Workflows - Sample and Package Update (#1759)

* Update #1

* Sample comments

* Formatting

* Whitespace
This commit is contained in:
Chris
2025-10-28 16:26:55 -07:00
committed by GitHub
Unverified
parent eed7e59f3f
commit 00a78d7bc6
3 changed files with 6 additions and 4 deletions
@@ -184,6 +184,7 @@ internal sealed class Program
private async Task<ExternalRequest?> MonitorAndDisposeWorkflowRunAsync(Checkpointed<StreamingRun> run, object? response = null)
{
// Always dispose the run when done.
await using IAsyncDisposable disposeRun = run;
bool hasStreamed = false;
@@ -231,7 +232,7 @@ internal sealed class Program
}
else
{
await run.Run.DisposeAsync();
// Yield to handle the external request
return requestInfo.Request;
}
break;
@@ -326,7 +327,7 @@ internal sealed class Program
}
}
return default;
return null; // No request to handle
}
/// <summary>