Skip to content

Commit 4c3dcac

Browse files
Copilotjaviercn
andcommitted
Make IPersistentComponentStateSerializer<T> public while keeping base interface internal
Co-authored-by: javiercn <[email protected]>
1 parent 358f9e4 commit 4c3dcac

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Components/Components/src/IPersistentComponentStateSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal 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-
internal interface IPersistentComponentStateSerializer<T> : IPersistentComponentStateSerializer
36+
public 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Microsoft.AspNetCore.Components.Infrastructure.RegisterPersistentComponentStateS
1616
Microsoft.AspNetCore.Components.PersistentStateAttribute
1717
Microsoft.AspNetCore.Components.PersistentStateAttribute.PersistentStateAttribute() -> void
1818
Microsoft.AspNetCore.Components.Infrastructure.PersistentStateProviderServiceCollectionExtensions
19+
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer<T>
20+
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer<T>.PersistAsync(T value, System.Buffers.IBufferWriter<byte>! writer) -> System.Threading.Tasks.Task!
21+
Microsoft.AspNetCore.Components.IPersistentComponentStateSerializer<T>.Restore(System.Buffers.ReadOnlySequence<byte> data) -> T
1922
static Microsoft.AspNetCore.Components.Infrastructure.RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<TService>(Microsoft.Extensions.DependencyInjection.IServiceCollection! services, Microsoft.AspNetCore.Components.IComponentRenderMode! componentRenderMode) -> Microsoft.Extensions.DependencyInjection.IServiceCollection!
2023
static Microsoft.AspNetCore.Components.Infrastructure.ComponentsMetricsServiceCollectionExtensions.AddComponentsMetrics(Microsoft.Extensions.DependencyInjection.IServiceCollection! services) -> Microsoft.Extensions.DependencyInjection.IServiceCollection!
2124
static Microsoft.AspNetCore.Components.Infrastructure.ComponentsMetricsServiceCollectionExtensions.AddComponentsTracing(Microsoft.Extensions.DependencyInjection.IServiceCollection! services) -> Microsoft.Extensions.DependencyInjection.IServiceCollection!

0 commit comments

Comments
 (0)