예제 #1
0
        //private IntegrationService _integrationService;

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