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

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