2 implementations of IPersistentServiceRegistration
Microsoft.AspNetCore.Components (2)
PersistentState\PersistentServiceRegistration.cs (1)
9
internal sealed class PersistentServiceRegistration<TService>(IComponentRenderMode componentRenderMode) :
IPersistentServiceRegistration
PersistentState\PersistentServicesRegistry.cs (1)
262
private class PersistentServiceRegistration :
IPersistentServiceRegistration
10 references to IPersistentServiceRegistration
Microsoft.AspNetCore.Components (10)
PersistentState\PersistentServicesRegistry.cs (6)
26
private
IPersistentServiceRegistration
[] _registrations;
46
internal IReadOnlyList<
IPersistentServiceRegistration
> Registrations => _registrations;
64
var
registration = _registrations[i];
163
internal static
IPersistentServiceRegistration
[] ResolveRegistrations(IEnumerable<
IPersistentServiceRegistration
> registrations) => [.. registrations.DistinctBy(r => (r.Assembly, r.FullTypeName)).OrderBy(r => r.Assembly).ThenBy(r => r.FullTypeName)];
165
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)));