public async Task Handle(WorkflowExecutionBurstCompleted notification, CancellationToken cancellationToken) { var behavior = notification.WorkflowExecutionContext.WorkflowBlueprint.PersistenceBehavior; if (behavior == WorkflowPersistenceBehavior.WorkflowBurst) { await SaveWorkflowAsync(notification.WorkflowExecutionContext.WorkflowInstance, cancellationToken); } }
public Task Handle(WorkflowExecutionBurstCompleted notification, CancellationToken cancellationToken) { _logger.LogDebug("Burst of workflow execution completed for workflow {WorkflowInstanceId}", notification.WorkflowExecutionContext.WorkflowInstance.Id); return(Task.CompletedTask); }