Esempio n. 1
0
        public async Task Handle(WorkflowExecutionBurstCompleted notification, CancellationToken cancellationToken)
        {
            var behavior = notification.WorkflowExecutionContext.WorkflowBlueprint.PersistenceBehavior;

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