示例#1
0
        public async Task <IWorkflowBlueprint?> FindByTagAsync(string tag, VersionOptions versionOptions, string?tenantId = default, CancellationToken cancellationToken = default)
        {
            var cacheKey = $"{RootKey}:definition:name:{tag}:{versionOptions}:{tenantId}";

            return(await FindInternalAsync(cacheKey, () => _workflowRegistry.FindByTagAsync(tag, versionOptions, tenantId, cancellationToken), cancellationToken));
        }