Пример #1
0
        public override ValueTask DeleteAsync(WorkflowStorageContext context, CancellationToken cancellationToken = default)
        {
            var workflowInstanceId = context.WorkflowInstance.Id;

            _cacheSignal.TriggerToken(GetSignalKey(workflowInstanceId));
            return(new ValueTask());
        }
Пример #2
0
 public async Task ExecuteAsync(CancellationToken cancellationToken = default) => await _redisBus.SubscribeAsync(nameof(CacheSignal), (channel, message) => _cacheSignal.TriggerToken(message));
Пример #3
0
 public void TriggerToken(string key) => _cacheSignal.TriggerToken(key);