public override ValueTask DeleteAsync(WorkflowStorageContext context, CancellationToken cancellationToken = default) { var workflowInstanceId = context.WorkflowInstance.Id; _cacheSignal.TriggerToken(GetSignalKey(workflowInstanceId)); return(new ValueTask()); }
public async Task ExecuteAsync(CancellationToken cancellationToken = default) => await _redisBus.SubscribeAsync(nameof(CacheSignal), (channel, message) => _cacheSignal.TriggerToken(message));
public void TriggerToken(string key) => _cacheSignal.TriggerToken(key);