Skip to content

Commit 159a617

Browse files
committed
Remove more APIs
1 parent fc2bab8 commit 159a617

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

src/Components/Endpoints/src/Builder/RazorComponentApplicationAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Components.Infrastructure;
1010
/// application.
1111
/// </summary>
1212
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
13-
public abstract class RazorComponentApplicationAttribute : Attribute, IRazorComponentApplication
13+
internal abstract class RazorComponentApplicationAttribute : Attribute, IRazorComponentApplication
1414
{
1515
/// <summary>
1616
/// Creates a builder that can be used to customize the definition of the application.

src/Components/Endpoints/src/Builder/RazorComponentDataSourceOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Components.Endpoints;
1010
/// given <see cref="RazorComponentsEndpointRouteBuilderExtensions.MapRazorComponents{TRootComponent}(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder)"/>
1111
/// invocation.
1212
/// </summary>
13-
public class RazorComponentDataSourceOptions
13+
internal class RazorComponentDataSourceOptions
1414
{
1515
/// <summary>
1616
/// Gets or sets whether to automatically wire up the necessary endpoints
@@ -20,7 +20,7 @@ public class RazorComponentDataSourceOptions
2020
/// <remarks>
2121
/// The default value is <c>true</c>.
2222
/// </remarks>
23-
public bool UseDeclaredRenderModes { get; set; } = true;
23+
internal bool UseDeclaredRenderModes { get; set; } = true;
2424

2525
internal IList<IComponentRenderMode> ConfiguredRenderModes { get; } = new List<IComponentRenderMode>();
2626
}

src/Components/Endpoints/src/Discovery/ComponentApplicationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ internal RazorComponentApplication Build()
3434
/// </summary>
3535
/// <param name="assemblyName">The name of the assembly to check.</param>
3636
/// <returns><c>true</c> when present; <c>false</c> otherwise.</returns>
37-
public bool HasLibrary(string assemblyName)
37+
public bool HasAssembly(string assemblyName)
3838
{
3939
return _assemblies.Contains(assemblyName);
4040
}

src/Components/Endpoints/src/PublicAPI.Unshipped.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
abstract Microsoft.AspNetCore.Components.Endpoints.RenderModeEndpointProvider.GetEndpointBuilders(Microsoft.AspNetCore.Components.IComponentRenderMode! renderMode, Microsoft.AspNetCore.Builder.IApplicationBuilder! applicationBuilder) -> System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.RouteEndpointBuilder!>!
22
abstract Microsoft.AspNetCore.Components.Endpoints.RenderModeEndpointProvider.Supports(Microsoft.AspNetCore.Components.IComponentRenderMode! renderMode) -> bool
3-
abstract Microsoft.AspNetCore.Components.Infrastructure.RazorComponentApplicationAttribute.GetBuilder() -> Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder!
43
Microsoft.AspNetCore.Builder.RazorComponentEndpointConventionBuilder
54
Microsoft.AspNetCore.Builder.RazorComponentEndpointConventionBuilder.Add(System.Action<Microsoft.AspNetCore.Builder.EndpointBuilder!>! convention) -> void
65
Microsoft.AspNetCore.Builder.RazorComponentEndpointConventionBuilder.AddServerRenderMode() -> Microsoft.AspNetCore.Builder.RazorComponentEndpointConventionBuilder!
@@ -12,7 +11,7 @@ Microsoft.AspNetCore.Builder.RazorComponentsEndpointRouteBuilderExtensions
1211
Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder
1312
Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder.AddAssembly(System.Reflection.Assembly! assembly) -> Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder!
1413
Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder.ComponentApplicationBuilder() -> void
15-
Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder.HasLibrary(string! assemblyName) -> bool
14+
Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder.HasAssembly(string! assemblyName) -> bool
1615
Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder.RemoveAssembly(System.Reflection.Assembly! assembly) -> Microsoft.AspNetCore.Components.Discovery.ComponentApplicationBuilder!
1716
Microsoft.AspNetCore.Components.Endpoints.ComponentTypeMetadata
1817
Microsoft.AspNetCore.Components.Endpoints.ComponentTypeMetadata.ComponentTypeMetadata(System.Type! componentType) -> void
@@ -23,10 +22,6 @@ Microsoft.AspNetCore.Components.Endpoints.IComponentPrerenderer.PrerenderCompone
2322
Microsoft.AspNetCore.Components.Endpoints.IComponentPrerenderer.PrerenderPersistedStateAsync(Microsoft.AspNetCore.Http.HttpContext! httpContext, Microsoft.AspNetCore.Components.PersistedStateSerializationMode serializationMode) -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Html.IHtmlContent!>
2423
Microsoft.AspNetCore.Components.Endpoints.IRazorComponentsBuilder
2524
Microsoft.AspNetCore.Components.Endpoints.IRazorComponentsBuilder.Services.get -> Microsoft.Extensions.DependencyInjection.IServiceCollection!
26-
Microsoft.AspNetCore.Components.Endpoints.RazorComponentDataSourceOptions
27-
Microsoft.AspNetCore.Components.Endpoints.RazorComponentDataSourceOptions.RazorComponentDataSourceOptions() -> void
28-
Microsoft.AspNetCore.Components.Endpoints.RazorComponentDataSourceOptions.UseDeclaredRenderModes.get -> bool
29-
Microsoft.AspNetCore.Components.Endpoints.RazorComponentDataSourceOptions.UseDeclaredRenderModes.set -> void
3025
Microsoft.AspNetCore.Components.Endpoints.RazorComponentResult
3126
Microsoft.AspNetCore.Components.Endpoints.RazorComponentResult.ComponentType.get -> System.Type!
3227
Microsoft.AspNetCore.Components.Endpoints.RazorComponentResult.ContentType.get -> string?
@@ -55,8 +50,6 @@ Microsoft.AspNetCore.Components.Endpoints.WebAssemblyComponentsEndpointOptions
5550
Microsoft.AspNetCore.Components.Endpoints.WebAssemblyComponentsEndpointOptions.PathPrefix.get -> Microsoft.AspNetCore.Http.PathString
5651
Microsoft.AspNetCore.Components.Endpoints.WebAssemblyComponentsEndpointOptions.PathPrefix.set -> void
5752
Microsoft.AspNetCore.Components.Endpoints.WebAssemblyComponentsEndpointOptions.WebAssemblyComponentsEndpointOptions() -> void
58-
Microsoft.AspNetCore.Components.Infrastructure.RazorComponentApplicationAttribute
59-
Microsoft.AspNetCore.Components.Infrastructure.RazorComponentApplicationAttribute.RazorComponentApplicationAttribute() -> void
6053
Microsoft.AspNetCore.Components.PersistedStateSerializationMode
6154
Microsoft.AspNetCore.Components.PersistedStateSerializationMode.Infer = 1 -> Microsoft.AspNetCore.Components.PersistedStateSerializationMode
6255
Microsoft.AspNetCore.Components.PersistedStateSerializationMode.Server = 2 -> Microsoft.AspNetCore.Components.PersistedStateSerializationMode

0 commit comments

Comments
 (0)