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)
244
private class PersistentServiceRegistration :
IPersistentServiceRegistration
10 references to IPersistentServiceRegistration
Microsoft.AspNetCore.Components (10)
PersistentState\PersistentServicesRegistry.cs (6)
24
private
IPersistentServiceRegistration
[] _registrations;
44
internal IReadOnlyList<
IPersistentServiceRegistration
> Registrations => _registrations;
62
var
registration = _registrations[i];
145
internal static
IPersistentServiceRegistration
[] ResolveRegistrations(IEnumerable<
IPersistentServiceRegistration
> registrations) => [.. registrations.DistinctBy(r => (r.Assembly, r.FullTypeName)).OrderBy(r => r.Assembly).ThenBy(r => r.FullTypeName)];
147
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)));