Removes the abstraction on the profiler, no need for a resolver, it will work in unit tests and we can override the provider if needed.
Added better support for MVC profiling by using the built in ProfilingViewEngine and ProfilingActionFilter.
This commit is contained in:
@@ -22,6 +22,16 @@ namespace Umbraco.Web.Mvc
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the controller name from the controller instance
|
||||
/// </summary>
|
||||
/// <param name="controllerInstance"></param>
|
||||
/// <returns></returns>
|
||||
internal static string GetControllerName(this IController controllerInstance)
|
||||
{
|
||||
return GetControllerName(controllerInstance.GetType());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the controller name from the controller type
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
|
||||
Reference in New Issue
Block a user