예제 #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);