File: Compilation\IViewCompiler.cs
Web Access
Project: src\src\Mvc\Mvc.Razor\src\Microsoft.AspNetCore.Mvc.Razor.csproj (Microsoft.AspNetCore.Mvc.Razor)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Mvc.Razor.Compilation;
 
/// <summary>
/// Represents a view compiler.
/// </summary>
public interface IViewCompiler
{
    /// <summary>
    /// Compile a view at the specified path.
    /// </summary>
    /// <param name="relativePath">The relative path to the view.</param>
    /// <returns>A <see cref="CompiledViewDescriptor"/>.</returns>
    Task<CompiledViewDescriptor> CompileAsync(string relativePath);
}