public async Task Handle(WorkflowExecutionFinished notification, CancellationToken cancellationToken) { var workflowInstance = notification.WorkflowExecutionContext.WorkflowInstance; await _bookmarkIndexer.IndexBookmarksAsync(workflowInstance, cancellationToken); await RunPostSuspensionTasksAsync(notification, cancellationToken); }
public async Task Handle(WorkflowTestExecutionStopped notification, CancellationToken cancellationToken) { var workflowInstance = await _workflowInstanceStore.FindByIdAsync(notification.WorkflowInstanceId, cancellationToken); if (workflowInstance != null) { await _bookmarkIndexer.IndexBookmarksAsync(workflowInstance, cancellationToken); } }
public async Task Handle(WorkflowInstanceSaved notification, CancellationToken cancellationToken) { var workflowInstance = notification.WorkflowInstance; await _bookmarkIndexer.IndexBookmarksAsync(workflowInstance, cancellationToken); }