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

            await _triggerIndexer.IndexTriggersAsync(cancellationToken);
        }
Ejemplo n.º 2
0
 public async Task Handle(WebhookDefinitionSaved notification, CancellationToken cancellationToken)
 {
     await _cacheSignal.TriggerTokenAsync(ActivityTypeService.CacheKey);
 }
Ejemplo n.º 3
0
 Task INotificationHandler <WorkflowDefinitionSaved> .Handle(WorkflowDefinitionSaved notification, CancellationToken cancellationToken)
 {
     _cacheSignal.TriggerTokenAsync(GetEvictionKey(notification.WorkflowDefinition.DefinitionId));
     return(Task.CompletedTask);
 }
Ejemplo n.º 4
0
 private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken)
 {
     await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.CacheKey);
     await _triggerIndexer.IndexTriggersAsync(cancellationToken);
 }
Ejemplo n.º 5
0
        public async ValueTask TriggerTokenAsync(string key)
        {
            await _cacheSignal.TriggerTokenAsync(key);

            await _redisBus.PublishAsync(nameof(CacheSignal), key);
        }
Ejemplo n.º 6
0
        public async ValueTask TriggerTokenAsync(string key)
        {
            await _cacheSignal.TriggerTokenAsync(key);

            await _eventPublisher.PublishAsync(new TriggerCacheSignal(key));
        }