49 instantiations of PersistentStateAttribute
Microsoft.AspNetCore.Components.Endpoints (2)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
10
[
PersistentState
]
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
16
[
PersistentState
]
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
10
[
PersistentState
]
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\CircuitPersistenceManagerTest.cs (2)
591
[
PersistentState
]
622
[
PersistentState
]
Microsoft.AspNetCore.Components.Tests (35)
PersistentState\ComponentStatePersistenceManagerTest.cs (1)
451
[
PersistentState
(AllowUpdates = true)]
PersistentState\PersistentServicesRegistryTest.cs (9)
529
[
PersistentState
(RestoreBehavior = RestoreBehavior.SkipInitialValue)]
535
[
PersistentState
(RestoreBehavior = RestoreBehavior.SkipLastSnapshot)]
541
[
PersistentState
(AllowUpdates = true)]
547
[
PersistentState
]
553
[
PersistentState
]
575
[
PersistentState
]
627
[
PersistentState
]
633
[
PersistentState
]
639
[
PersistentState
]
PersistentStateValueProviderKeyResolverTests.cs (6)
323
new
PersistentStateAttribute
(),
381
[
PersistentState
]
390
[
PersistentState
]
393
[
PersistentState
]
396
[
PersistentState
]
399
[
PersistentState
]
PersistentStateValueProviderTests.cs (6)
116
new
PersistentStateAttribute
(),
174
[
PersistentState
]
183
[
PersistentState
]
186
[
PersistentState
]
189
[
PersistentState
]
192
[
PersistentState
]
PersistentValueProviderComponentSubscriptionTests.cs (13)
444
new
PersistentStateAttribute
(),
456
new
PersistentStateAttribute
538
[
PersistentState
(AllowUpdates = true)]
554
[
PersistentState
]
557
[
PersistentState
]
560
[
PersistentState
]
563
[
PersistentState
]
572
[
PersistentState
]
575
[
PersistentState
]
578
[
PersistentState
]
587
[
PersistentState
]
629
[
PersistentState
]
638
[
PersistentState
]
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
10
[
PersistentState
]
Microsoft.AspNetCore.Components.WebAssembly (2)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
10
[
PersistentState
]
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
16
[
PersistentState
]
TestContentPackage (6)
Services\InteractiveAutoService.cs (2)
13
[
PersistentState
]
16
[
PersistentState
(RestoreBehavior = RestoreBehavior.SkipInitialValue)]
Services\InteractiveServerService.cs (2)
12
[
PersistentState
]
15
[
PersistentState
(RestoreBehavior = RestoreBehavior.SkipInitialValue)]
Services\InteractiveWebAssemblyService.cs (2)
13
[
PersistentState
]
16
[
PersistentState
(RestoreBehavior = RestoreBehavior.SkipInitialValue)]
8 references to PersistentStateAttribute
Microsoft.AspNetCore.Components (8)
PersistentState\PersistentServicesRegistry.cs (2)
172
PersistentStateAttribute
? parameterAttribute = null;
175
if (attribute is
PersistentStateAttribute
persistentStateAttribute)
PersistentState\PersistentStateProviderServiceCollectionExtensions.cs (2)
10
/// Enables component parameters to be supplied from <see cref="PersistentComponentState"/> with <see cref="
PersistentStateAttribute
"/>.
15
/// Enables component parameters to be supplied from <see cref="PersistentComponentState"/> with <see cref="
PersistentStateAttribute
"/>.
PersistentState\PersistentStateValueProvider.cs (1)
19
=> parameterInfo.Attribute is
PersistentStateAttribute
;
PersistentState\PersistentValueProviderComponentSubscription.cs (2)
63
var
attribute = (
PersistentStateAttribute
)parameterInfo.Attribute;
RegisterPersistentComponentStateServiceCollectionExtensions.cs (1)
20
/// Only public properties annotated with <see cref="
PersistentStateAttribute
"/> are persisted and restored.