File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/Components/test/testassets/Components.WasmMinimal Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 44using System . Runtime . InteropServices . JavaScript ;
55using System . Security . Claims ;
66using Components . TestServer . Services ;
7+ using Microsoft . AspNetCore . Components ;
78using Microsoft . AspNetCore . Components . Web ;
89using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
10+ using TestContentPackage ;
911using TestContentPackage . Services ;
1012
1113var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
1416builder . Services . AddSingleton < InteractiveAutoService > ( ) ;
1517builder . Services . AddSingleton < InteractiveServerService > ( ) ;
1618
19+ // Register custom serializer for persistent component state
20+ builder . Services . AddSingleton < IPersistentComponentStateSerializer < int > , CustomIntSerializer > ( ) ;
21+
1722builder . Services . AddCascadingAuthenticationState ( ) ;
1823
1924builder . Services . AddAuthenticationStateDeserialization ( options =>
You can’t perform that action at this time.
0 commit comments