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

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

            await _redisBus.PublishAsync(nameof(CacheSignal), key);
        }
예제 #6
0
        public async ValueTask TriggerTokenAsync(string key)
        {
            await _cacheSignal.TriggerTokenAsync(key);

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