示例#1
0
        public Runtime(FusionAst configuration, RuntimeConfiguration settings = null)
        {
            this.configuration = configuration;
            var emptyContext = new Dictionary <string, object>();

            contextStack = new Stack <Dictionary <string, object> >()
            {
            };
            contextStack.Push(emptyContext);
            var emptyApplyValues = new Dictionary <string, KeyValuePair <string, object> >();

            applyValueStack = new Stack <Dictionary <string, KeyValuePair <string, object> > >();
            applyValueStack.Push(emptyApplyValues);
            this.settings            = settings ?? new RuntimeConfiguration();
            exceptionHandlerFactory  = new ExceptionHandlerFactory();
            this.runtimeContentCache = new Cache.RuntimeContentCache(this);
        }
示例#2
0
 public void SetExceptionHandlerFactory(ExceptionHandlerFactory exceptionHandlerFactory)
 {
     this.exceptionHandlerFactory = exceptionHandlerFactory;
 }