Skip to content

Provide a valid RegisterPersistentService example #36181

@Markz878

Description

@Markz878

Description

Could you please add a valid use case for the RegisterPersistentService feature, I have no idea where and how this would be used in an actual app instead of the [PersistentState] attribute. The given example does not give any indication where the CounterService is initialized and consumed and what is the use case for this.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/prerendered-state-persistence?view=aspnetcore-10.0#interactive-routing-and-prerendering

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/state-management/prerendered-state-persistence.md

Document ID

87541d05-df71-880e-df14-e023f94464b1

Platform Id

3135d8df-3e4f-a671-29ba-f214fd4fee23

Article author

@guardrex

Metadata

  • ID: 87541d05-df71-880e-df14-e023f94464b1
  • PlatformId: 3135d8df-3e4f-a671-29ba-f214fd4fee23
  • Service: aspnet-core
  • Sub-service: blazor

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions