private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken) { //TODO: is still needed here? await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.RootKey); await _triggerIndexer.IndexTriggersAsync(cancellationToken); }
private async Task IndexTriggersAsync(WorkflowDefinition workflowDefinition, CancellationToken cancellationToken) { var workflowBlueprint = await TryMaterializeBlueprintAsync(workflowDefinition, cancellationToken); if (workflowBlueprint != null) { await _triggerIndexer.IndexTriggersAsync(workflowBlueprint, cancellationToken); } }
public async Task ExecuteAsync(CancellationToken cancellationToken = default) { await _triggerIndexer.IndexTriggersAsync(cancellationToken); }
private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken) { await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.CacheKey); await _triggerIndexer.IndexTriggersAsync(cancellationToken); }