//private IntegrationService _integrationService;

        public ContextSetDiscoveryService(DonutContext ctx, IServiceProvider serviceProvider)
        {
            _context            = ctx;
            _setFinder          = new CacheSetFinder();
            _setSource          = new CacheSetSource();
            _integrationService = (IIntegrationService)serviceProvider.GetService(typeof(IIntegrationService));
        }
Exemple #2
0
 public IReadOnlyList <DataSetProperty> FindDataSets(DonutContext context)
 => _dataSetCache.GetOrAdd(context.GetType(), FindDataSets);
Exemple #3
0
 public virtual IReadOnlyList <CacheSetProperty> FindSets(DonutContext context)
 => _cache.GetOrAdd(context.GetType(), FindSets);