private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken) { //TODO: is still needed here? await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.RootKey); await _triggerIndexer.IndexTriggersAsync(cancellationToken); }
public async Task Handle(WebhookDefinitionSaved notification, CancellationToken cancellationToken) { await _cacheSignal.TriggerTokenAsync(ActivityTypeService.CacheKey); }
Task INotificationHandler <WorkflowDefinitionSaved> .Handle(WorkflowDefinitionSaved notification, CancellationToken cancellationToken) { _cacheSignal.TriggerTokenAsync(GetEvictionKey(notification.WorkflowDefinition.DefinitionId)); return(Task.CompletedTask); }
private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken) { await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.CacheKey); await _triggerIndexer.IndexTriggersAsync(cancellationToken); }
public async ValueTask TriggerTokenAsync(string key) { await _cacheSignal.TriggerTokenAsync(key); await _redisBus.PublishAsync(nameof(CacheSignal), key); }
public async ValueTask TriggerTokenAsync(string key) { await _cacheSignal.TriggerTokenAsync(key); await _eventPublisher.PublishAsync(new TriggerCacheSignal(key)); }