public PrecompilationView(string virtualPath, string masterPath, Type viewType, bool runViewStart, ProfiledVirtualPathProviderViewEngine viewEngine) { _virtualPath = virtualPath; _masterPath = masterPath; _viewType = viewType; _runViewStart = runViewStart; _viewEngine = viewEngine; }
/// <summary> /// Invokes the <see cref="ProfiledVirtualPathProviderViewEngine.ProfileStep"/> if it's set. /// </summary> public static IDisposable DoProfileStep(this ProfiledVirtualPathProviderViewEngine instance, string name) => instance?.ProfileStep?.Invoke(name);