private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken)
        {
            //TODO: is still needed here?
            await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.RootKey);

            await _triggerIndexer.IndexTriggersAsync(cancellationToken);
        }
Exemplo n.º 2
0
    private async Task IndexTriggersAsync(WorkflowDefinition workflowDefinition, CancellationToken cancellationToken)
    {
        var workflowBlueprint = await TryMaterializeBlueprintAsync(workflowDefinition, cancellationToken);

        if (workflowBlueprint != null)
        {
            await _triggerIndexer.IndexTriggersAsync(workflowBlueprint, cancellationToken);
        }
    }
Exemplo n.º 3
0
 public async Task ExecuteAsync(CancellationToken cancellationToken = default)
 {
     await _triggerIndexer.IndexTriggersAsync(cancellationToken);
 }
Exemplo n.º 4
0
 private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken)
 {
     await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.CacheKey);
     await _triggerIndexer.IndexTriggersAsync(cancellationToken);
 }