This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #809
- Loading branch information
Showing
4 changed files
with
95 additions
and
33 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/Microsoft.AspNetCore.Mvc.Razor.Host/IMvcRazorHostWithCodeGenerationContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using Microsoft.AspNetCore.Razor; | ||
using Microsoft.AspNetCore.Razor.CodeGenerators; | ||
|
||
namespace Microsoft.AspNetCore.Mvc.Razor | ||
{ | ||
/// <summary> | ||
/// Specifies the contracts for a Razor host that parses Razor files and generates C# code. | ||
/// </summary> | ||
public interface IMvcRazorHostWithTemplateEngineContext | ||
{ | ||
/// <summary> | ||
/// Parses and generates the contents of a Razor file. | ||
/// </summary> | ||
/// <returns>The <see cref="GeneratorResults"/>.</returns> | ||
GeneratorResults GenerateCode(TemplateEngineContext context); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters