コード例 #1
0
        public TreeListCollection GetDescription()
        {
            var sessionData = HttpContext.Session.GetSessionData();
            var descriptor  = new Descriptor.Descriptor();

            return(GetTreeListData(descriptor.GetDescription(sessionData.CompiledResult)));
        }
コード例 #2
0
        public ActionResult Compile()
        {
            var sessionData = HttpContext.Session.GetSessionData();

            try
            {
                sessionData.CompiledResult = CodeCompiler.Run(sessionData.SourceCode, sessionData.FileObject);
                var descriptor = new Descriptor.Descriptor();
                return(new ObjectResult(GetTreeListData(descriptor.GetDescription(sessionData.CompiledResult))));
            }
            catch (Exception ex)
            {
                Core.Log.Write(ex);
                return(new ObjectResult(new SerializableException(ex)));
            }
        }