File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
src/Components/test/testassets Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1313using Microsoft . AspNetCore . Components . WebAssembly . Services ;
1414using Microsoft . Extensions . Logging . Configuration ;
1515using Microsoft . JSInterop ;
16+ using TestContentPackage ;
1617
1718namespace BasicTestApp ;
1819
@@ -45,6 +46,9 @@ public static async Task Main(string[] args)
4546 builder . Services . AddScoped < PreserveStateService > ( ) ;
4647 builder . Services . AddTransient < FormsTest . ValidationComponentDI . SaladChef > ( ) ;
4748
49+ // Register custom serializer for E2E testing of persistent component state serialization extensibility
50+ builder . Services . AddSingleton < IPersistentComponentStateSerializer < int > , CustomIntSerializer > ( ) ;
51+
4852 builder . Services . AddKeyedSingleton ( "keyed-service-1" , TestKeyedService . Create ( "value-1" ) ) ;
4953 builder . Services . AddKeyedSingleton ( TestServiceKey . ServiceB , TestKeyedService . Create ( "value-2" ) ) ;
5054
Original file line number Diff line number Diff line change 1313using Microsoft . AspNetCore . Components . Web ;
1414using Microsoft . AspNetCore . Components . WebAssembly . Server ;
1515using Microsoft . AspNetCore . Mvc ;
16+ using TestContentPackage ;
1617using TestContentPackage . Services ;
1718
1819namespace TestServer ;
Original file line number Diff line number Diff line change 55using System . Text ;
66using Microsoft . AspNetCore . Components ;
77
8- namespace TestServer ;
8+ namespace TestContentPackage ;
99
1010/// <summary>
1111/// A custom serializer for int values that uses a custom format to test serialization extensibility.
You can’t perform that action at this time.
0 commit comments