diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs index c2c58118bd..4575742449 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs @@ -107,11 +107,6 @@ namespace Microsoft.AspNetCore.Components protected virtual bool ShouldRender() { throw null; } protected void StateHasChanged() { } } - public partial class DefaultComponentActivator : Microsoft.AspNetCore.Components.IComponentActivator - { - public DefaultComponentActivator() { } - public Microsoft.AspNetCore.Components.IComponent CreateInstance(System.Type componentType) { throw null; } - } public abstract partial class Dispatcher { protected Dispatcher() { } diff --git a/src/Components/Components/src/DefaultComponentActivator.cs b/src/Components/Components/src/DefaultComponentActivator.cs index ac5f5b2fb7..bf4be00899 100644 --- a/src/Components/Components/src/DefaultComponentActivator.cs +++ b/src/Components/Components/src/DefaultComponentActivator.cs @@ -5,15 +5,9 @@ using System; namespace Microsoft.AspNetCore.Components { - /// - /// Default implementation of . - /// - public class DefaultComponentActivator : IComponentActivator + internal class DefaultComponentActivator : IComponentActivator { - // If no IComponentActivator is supplied by DI, the renderer uses this instance. - // It's internal because in the future, we might want to add per-scope state and then - // it would no longer be applicable to have a shared instance. - internal static IComponentActivator Instance { get; } = new DefaultComponentActivator(); + public static IComponentActivator Instance { get; } = new DefaultComponentActivator(); /// public IComponent CreateInstance(Type componentType)