Skip to content

Commit 358f9e4

Browse files
Copilotjaviercn
andcommitted
Make IPersistentComponentStateSerializer interface internal per code review feedback
Co-authored-by: javiercn <[email protected]>
1 parent fc6a4d9 commit 358f9e4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/Components/Components/src/IPersistentComponentStateSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Components;
88
/// <summary>
99
/// Provides custom serialization logic for persistent component state values.
1010
/// </summary>
11-
public interface IPersistentComponentStateSerializer
11+
internal interface IPersistentComponentStateSerializer
1212
{
1313
/// <summary>
1414
/// Serializes the provided <paramref name="value"/> and writes it to the <paramref name="writer"/>.
@@ -33,7 +33,7 @@ public interface IPersistentComponentStateSerializer
3333
/// Provides custom serialization logic for persistent component state values of type <typeparamref name="T"/>.
3434
/// </summary>
3535
/// <typeparam name="T">The type of the value to serialize.</typeparam>
36-
public interface IPersistentComponentStateSerializer<T> : IPersistentComponentStateSerializer
36+
internal interface IPersistentComponentStateSerializer<T> : IPersistentComponentStateSerializer
3737
{
3838
/// <summary>
3939
/// Serializes the provided <paramref name="value"/> and writes it to the <paramref name="writer"/>.

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,3 @@ static Microsoft.AspNetCore.Components.Infrastructure.ComponentsMetricsServiceCo
2121
static Microsoft.AspNetCore.Components.Infrastructure.ComponentsMetricsServiceCollectionExtensions.AddComponentsTracing(Microsoft.Extensions.DependencyInjection.IServiceCollection! services) -> Microsoft.Extensions.DependencyInjection.IServiceCollection!
2222
static Microsoft.AspNetCore.Components.Infrastructure.PersistentStateProviderServiceCollectionExtensions.AddSupplyValueFromPersistentComponentStateProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services) -> Microsoft.Extensions.DependencyInjection.IServiceCollection!
2323
virtual Microsoft.AspNetCore.Components.Rendering.ComponentState.GetComponentKey() -> object?
24-
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer
25-
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer.PersistAsync(System.Type! type, object! value, System.Buffers.IBufferWriter<byte>! writer) -> System.Threading.Tasks.Task!
26-
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer.Restore(System.Type! type, System.Buffers.ReadOnlySequence<byte> data) -> object!
27-
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer<T>
28-
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer<T>.PersistAsync(T value, System.Buffers.IBufferWriter<byte>! writer) -> System.Threading.Tasks.Task!
29-
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer<T>.Restore(System.Buffers.ReadOnlySequence<byte> data) -> T

0 commit comments

Comments
 (0)