public override ViewEngineResult FindPartialView(ControllerContext controllerContext, string partialViewName, bool useCache) { object symbolicName = controllerContext.GetPluginSymbolicName(); if (symbolicName != null && Bundle.Assembly.GetName().Name.Equals(symbolicName)) { return base.FindPartialView(controllerContext, partialViewName, useCache); } return new ViewEngineResult(new string[0]); }
public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache) { object symbolicName = controllerContext.GetPluginSymbolicName(); if (symbolicName != null && Bundle.Assembly.GetName().Name.Equals(symbolicName)) { this.CodeGeneration(Bundle.Assembly.GetName().Name); return base.FindView(controllerContext, viewName, masterName, useCache); } return new ViewEngineResult(new string[0]); }
public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache) { object symbolicName = controllerContext.GetPluginSymbolicName(); if (symbolicName != null && Bundle.Assembly.GetName().Name.Equals(symbolicName)) { return base.FindView(controllerContext, viewName, masterName, useCache); } else { Logger.LogDebug("FindView symbolicName:" + Bundle.Assembly.GetName().Name + "viewName:" + viewName); } return new ViewEngineResult(new string[0]); }
private IViewEngine GetViewEngine(ControllerContext controllerContext) { IPluginViewEngine tmp; object symbolicName = controllerContext.GetPluginSymbolicName(); if (symbolicName == null) { Logger.LogDebug("GetViewEngine symbolicName:" + symbolicName.ToString() + "isIViewEngine:" + _viewEngines.TryGetValue(symbolicName.ToString(), out tmp)); return null; } if (_viewEngines.TryGetValue(symbolicName.ToString(), out tmp)) { return tmp; } else { Logger.LogDebug("GetViewEngine symbolicName:" + symbolicName.ToString() + "isIViewEngine:" + _viewEngines.TryGetValue(symbolicName.ToString(), out tmp)); } return null; }