public async Task <int> UpdateCache() { APP.Dlls.Clear(); APP.Types.Clear(); APP.MethodInfos.Clear(); APP.RuntimeCodes.Clear(); APP.Composeentitys.Clear(); APP.DynamicReferenceDlls.Clear(); APP.AConFlowSteps.Clear(); APP.ComposeTemplates.Clear(); APP.ClearCache(); //var razorlist = m_codeService.GetSimpleCode<SystemHtml>(null); //foreach(var ss in razorlist) //{ // if(APP.Razorengine.Handler.Cache.Contains(ss.Name)) // { // APP.Razorengine.Handler.Cache.Remove(ss.Name); // } //} await WebSetup.ClearAllDynamicActions(_actionProvider, _dynamicChangeTokenProvider); await WebSetup.BuildAllDynamicActions(_actionProvider, _dynamicChangeTokenProvider); APPCommon.InitRazorEngine(); return(0); }
public int UpdateCache() { APP.Dlls.Clear(); APP.Types.Clear(); APP.MethodInfos.Clear(); APP.RuntimeCodes.Clear(); APP.Composeentitys.Clear(); APP.DynamicReferenceDlls.Clear(); APP.AConFlowSteps.Clear(); APP.ComposeTemplates.Clear(); APP.ClearCache(); //var razorlist = m_codeService.GetSimpleCode<SystemHtml>(null); //foreach(var ss in razorlist) //{ // if(APP.Razorengine.Handler.Cache.Contains(ss.Name)) // { // APP.Razorengine.Handler.Cache.Remove(ss.Name); // } //} APP.InitRazorEngine(); return(0); }