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 4
4
using System . Runtime . InteropServices . JavaScript ;
5
5
using System . Security . Claims ;
6
6
using Components . TestServer . Services ;
7
+ using Microsoft . AspNetCore . Components ;
7
8
using Microsoft . AspNetCore . Components . Web ;
8
9
using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
10
+ using TestContentPackage ;
9
11
using TestContentPackage . Services ;
10
12
11
13
var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
14
16
builder . Services . AddSingleton < InteractiveAutoService > ( ) ;
15
17
builder . Services . AddSingleton < InteractiveServerService > ( ) ;
16
18
19
+ // Register custom serializer for persistent component state
20
+ builder . Services . AddSingleton < IPersistentComponentStateSerializer < int > , CustomIntSerializer > ( ) ;
21
+
17
22
builder . Services . AddCascadingAuthenticationState ( ) ;
18
23
19
24
builder . Services . AddAuthenticationStateDeserialization ( options =>
You can’t perform that action at this time.
0 commit comments