sdk-dotnet
sdk-dotnet copied to clipboard
Add strongly-typed extension methods for SignalWithStart
What was changed
Added extension methods for calling signalWithStart.
Why?
Adds support for strong typings when starting a workflow with a signal.
Currently this requires holding a second variable for WorkflowOptions and calling
options.SignalWithStart(x => x.Method()).
These extension methods give you the ability to short-hand the setup:
var handle = await _temporalClient.SignalWorkflowWithStartAsync(
workflow => workflow.RunAsync(),
workflow => workflow.SignalMethod(),
new WorkflowOptions
{
//...
});
Checklist
-
Closes N/A
-
How was this tested: I have been using these extension methods in some of my applications for awhile, but I figured they would be useful to others.
-
Any docs updates needed? N/A