15 references to SkipInitialValue
Microsoft.AspNetCore.Components (3)
PersistentState\RestoreBehavior.cs (1)
11
/// Use <see cref="
SkipInitialValue
"/> to skip restoring the initial value
PersistentState\RestoreContext.cs (1)
41
if (_initialValue && !options.RestoreBehavior.HasFlag(RestoreBehavior.
SkipInitialValue
))
PersistentStateAttribute.cs (1)
18
/// Use <code cref="RestoreBehavior.
SkipInitialValue
"/> to skip restoring the initial value
Microsoft.AspNetCore.Components.Tests (9)
PersistentState\PersistentComponentStateTest.cs (1)
220
var options = new RestoreOptions { RestoreBehavior = RestoreBehavior.
SkipInitialValue
, AllowUpdates = false };
PersistentState\PersistentServicesRegistryTest.cs (1)
529
[PersistentState(RestoreBehavior = RestoreBehavior.
SkipInitialValue
)]
PersistentState\RestoreContextTest.cs (6)
23
var options = new RestoreOptions { RestoreBehavior = RestoreBehavior.
SkipInitialValue
};
33
[InlineData(RestoreBehavior.
SkipInitialValue
, true, false)]
34
[InlineData(RestoreBehavior.
SkipInitialValue
, false, false)]
46
[InlineData(RestoreBehavior.
SkipInitialValue
)]
82
[InlineData(RestoreBehavior.
SkipInitialValue
)]
95
[InlineData(RestoreBehavior.
SkipInitialValue
)]
PersistentValueProviderComponentSubscriptionTests.cs (1)
223
RestoreBehavior.
SkipInitialValue
);
TestContentPackage (3)
Services\InteractiveAutoService.cs (1)
16
[PersistentState(RestoreBehavior = RestoreBehavior.
SkipInitialValue
)]
Services\InteractiveServerService.cs (1)
15
[PersistentState(RestoreBehavior = RestoreBehavior.
SkipInitialValue
)]
Services\InteractiveWebAssemblyService.cs (1)
16
[PersistentState(RestoreBehavior = RestoreBehavior.
SkipInitialValue
)]