-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
It would be nice to have methods for external events generated the same way we get orchestrations and activities added to TaskOrchestrationContext
.
Example: If I define below type and annotate it with the (proposed) DurableEventAttribute
[DurableEvent(nameof(ApprovalEvent))]
public sealed record ApprovalEvent(bool Approved, string? Approver);
The generator should generate the following extension method:
var approvalResult = await context.WaitForApprovalEvent(); // approvalResult is of type ApprovalEvent
vegar