Esempio n. 1
0
 private async Task <ICollection <IWorkflowBlueprint> > GetWorkflowBlueprints(CancellationToken cancellationToken)
 {
     return(await _memoryCache.GetOrCreateAsync(CacheKey, async entry =>
     {
         entry.Monitor(_signal.GetToken(CacheKey));
         return await _workflowRegistry.ListAsync(cancellationToken).ToList();
     }));
 }