Fix #2099 - make AssemblyExtension public

This is needed when a runtime wants to construct its own configuration
manually, especially useful in tests.
This commit is contained in:
Ryan Nowak 2018-02-28 13:14:58 -08:00
parent e05c2abd94
commit 92c511b2b4
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ using System.Reflection;
namespace Microsoft.AspNetCore.Razor.Language namespace Microsoft.AspNetCore.Razor.Language
{ {
internal class AssemblyExtension : RazorExtension public class AssemblyExtension : RazorExtension
{ {
public AssemblyExtension(string extensionName, Assembly assembly) public AssemblyExtension(string extensionName, Assembly assembly)
{ {
@ -28,7 +28,7 @@ namespace Microsoft.AspNetCore.Razor.Language
public Assembly Assembly { get; } public Assembly Assembly { get; }
public RazorExtensionInitializer CreateInitializer() internal RazorExtensionInitializer CreateInitializer()
{ {
// It's not an error to have an assembly with no initializers. This is useful to specify a dependency // It's not an error to have an assembly with no initializers. This is useful to specify a dependency
// that doesn't really provide any Razor configuration. // that doesn't really provide any Razor configuration.