1 implementation of IPersistentServiceRegistration
Microsoft.AspNetCore.Components (1)
PersistentState\PersistentServicesRegistry.cs (1)
227
private class PersistentServiceRegistration :
IPersistentServiceRegistration
12 references to IPersistentServiceRegistration
Microsoft.AspNetCore.Components (12)
PersistentState\PersistentServiceRegistration.cs (1)
9
internal sealed class PersistentServiceRegistration<TService>(IComponentRenderMode componentRenderMode) :
IPersistentServiceRegistration
PersistentState\PersistentServicesRegistry.cs (7)
23
private
IPersistentServiceRegistration
[] _registrations;
35
internal IReadOnlyList<
IPersistentServiceRegistration
> Registrations => _registrations;
51
var
registration = _registrations[i];
112
foreach (
var
registration in _registrations)
142
internal static
IPersistentServiceRegistration
[] ResolveRegistrations(IEnumerable<
IPersistentServiceRegistration
> registrations) => [.. registrations.DistinctBy(r => (r.Assembly, r.FullTypeName)).OrderBy(r => r.Assembly).ThenBy(r => r.FullTypeName)];
144
private static Type? ResolveType(
IPersistentServiceRegistration
registration)
PersistentState\RegisteredPersistentServiceRegistrationCollection.cs (3)
6
internal class RegisteredPersistentServiceRegistrationCollection(IEnumerable<
IPersistentServiceRegistration
> registrations)
8
private readonly IEnumerable<
IPersistentServiceRegistration
> _registrations =
11
public IEnumerable<
IPersistentServiceRegistration
> Registrations => _registrations;
RegisterPersistentComponentStateServiceCollectionExtensions.cs (1)
38
services.TryAddEnumerable(ServiceDescriptor.Singleton<
IPersistentServiceRegistration
>(new PersistentServiceRegistration<TService>(componentRenderMode)));