-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
BlazorPri0Urgent priorityUrgent prioritySource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcblazor/subsvcdoc-bug
Description
Description
The example for RegisterPersistentService seems incorrect.
The current docs show this:
builder.Services.RegisterPersistentService<CounterService>(
RenderMode.InteractiveAuto);But the only way I could get it to work was this:
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents()
.AddAuthenticationStateSerialization()
.RegisterPersistentService<CounterService>(RenderMode.InteractiveServer);Page URL
Content source URL
Document ID
87541d05-df71-880e-df14-e023f94464b1
Platform Id
3135d8df-3e4f-a671-29ba-f214fd4fee23
Article author
Metadata
- ID: 87541d05-df71-880e-df14-e023f94464b1
- PlatformId: 3135d8df-3e4f-a671-29ba-f214fd4fee23
- Service: aspnet-core
- Sub-service: blazor
Metadata
Metadata
Assignees
Labels
BlazorPri0Urgent priorityUrgent prioritySource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcblazor/subsvcdoc-bug
Type
Projects
Status
Done