Пример #1
0
 public static void UnloadRazorHostInAppDomain()
 {
     if (Current != null)
     {
         Current.UnloadHost();
     }
     Current = null;
 }
Пример #2
0
        public static RazorEngine <T> CreateRazorHostInAppDomain()
        {
            if (Current == null)
            {
                Current = new RazorEngineFactory <T>();
            }

            return(Current.GetRazorHostInAppDomain());
        }