예제 #1
0
        private OpenCacheExecutionContext Ctx(DmnDefinition def, ParsedExpressionCacheScopeEnum?cacheType)
        {
            if (!cacheType.HasValue) //default
            {
                return((OpenCacheExecutionContext)DmnExecutionContextFactory
                       .CreateCustomExecutionContext <OpenCacheExecutionContext>(def));
            }

            return((OpenCacheExecutionContext)DmnExecutionContextFactory
                   .CreateCustomExecutionContext <OpenCacheExecutionContext>(
                       def,
                       o => o.ParsedExpressionCacheScope = cacheType.Value));
        }