2 implementations of IMauiHandlersCollection
Microsoft.Maui (2)
Hosting\HandlerMauiAppBuilderExtensions.cs (1)
46 internal class HandlerServiceBuilder : MauiServiceCollection, IMauiHandlersCollection
Hosting\Internal\MauiHandlersCollection.cs (1)
5 class MauiHandlersCollection : MauiServiceCollection, IMauiHandlersCollection
46 references to IMauiHandlersCollection
Microsoft.Maui (28)
Hosting\HandlerMauiAppBuilderExtensions.cs (7)
12 public static MauiAppBuilder ConfigureMauiHandlers(this MauiAppBuilder builder, Action<IMauiHandlersCollection>? configureDelegate) 18 public static IServiceCollection ConfigureMauiHandlers(this IServiceCollection services, Action<IMauiHandlersCollection>? configureDelegate) 25 services.TryAddSingleton<IMauiHandlersFactory>(sp => new MauiHandlersFactory(sp.GetRequiredService<IMauiHandlersCollection>())); 26 services.TryAddSingleton<IMauiHandlersCollection>(sp => new HandlerServiceBuilder(sp.GetServices<HandlerRegistration>())); 33 private readonly Action<IMauiHandlersCollection> _registerAction; 35 public HandlerRegistration(Action<IMauiHandlersCollection> registerAction) 40 internal void AddRegistration(IMauiHandlersCollection builder)
Hosting\IMauiHandlersFactory.cs (1)
17 IMauiHandlersCollection GetCollection();
Hosting\Internal\MauiHandlersFactory.cs (3)
16 public MauiHandlersFactory(IMauiHandlersCollection collection) 36 public IMauiHandlersCollection GetCollection() => (IMauiHandlersCollection)InternalCollection;
Hosting\Internal\RegisteredHandlerServiceTypeSet.cs (2)
10 private static readonly ConcurrentDictionary<IMauiHandlersCollection, RegisteredHandlerServiceTypeSet> s_instances = new(); 12 internal static RegisteredHandlerServiceTypeSet GetInstance(IMauiHandlersCollection collection) =>
Hosting\MauiHandlersCollectionExtensions.cs (13)
18 public static IMauiHandlersCollection AddHandler( 19 this IMauiHandlersCollection handlersCollection, 40 public static IMauiHandlersCollection AddHandler<TType, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TTypeRender>( 41 this IMauiHandlersCollection handlersCollection) 59 public static IMauiHandlersCollection AddHandler<TType>( 60 this IMauiHandlersCollection handlersCollection, 76 public static IMauiHandlersCollection TryAddHandler( 77 this IMauiHandlersCollection handlersCollection, 98 public static IMauiHandlersCollection TryAddHandler<TType, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TTypeRender>( 99 this IMauiHandlersCollection handlersCollection) 117 public static IMauiHandlersCollection TryAddHandler<TType>( 118 this IMauiHandlersCollection handlersCollection, 127 private static void RegisterHandlerServiceType(this IMauiHandlersCollection handlersCollection, Type virtualViewType)
HotReload\HotReloadHelper.cs (2)
15 static IMauiHandlersCollection? HandlerService; 17 public static void RegisterHandlers(IMauiHandlersCollection handlerService)
Microsoft.Maui.Controls (2)
Hosting\AppHostBuilderExtensions.cs (2)
62 internal static IMauiHandlersCollection AddControlsHandlers(this IMauiHandlersCollection handlersCollection)
Microsoft.Maui.Controls.Compatibility (10)
MauiHandlersCollectionExtensions.cs (10)
10 public static IMauiHandlersCollection TryAddCompatibilityRenderer(this IMauiHandlersCollection handlersCollection, Type controlType, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] Type rendererType) 25 public static IMauiHandlersCollection AddCompatibilityRenderer(this IMauiHandlersCollection handlersCollection, Type controlType, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] Type rendererType) 40 public static IMauiHandlersCollection AddCompatibilityRenderer<TControlType, TMauiType, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] TRenderer>(this IMauiHandlersCollection handlersCollection) 55 public static IMauiHandlersCollection AddCompatibilityRenderer<TControlType, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] TRenderer>(this IMauiHandlersCollection handlersCollection) 65 public static IMauiHandlersCollection AddCompatibilityRenderers(this IMauiHandlersCollection handlersCollection, params global::System.Reflection.Assembly[] assemblies)
Microsoft.Maui.Controls.Maps (4)
AppHostBuilderExtensions.cs (4)
66 /// <param name="handlersCollection">An instance of <see cref="IMauiHandlersCollection"/> on which to register the map handlers.</param> 67 /// <returns>The provided <see cref="IMauiHandlersCollection"/> object with the registered map handlers for subsequent registration calls.</returns> 69 public static IMauiHandlersCollection AddMauiMaps(this IMauiHandlersCollection handlersCollection)
Microsoft.Maui.Controls.Xaml (2)
Hosting\AppHostBuilderExtensions.cs (2)
38 public static IMauiHandlersCollection AddMauiControlsHandlers(this IMauiHandlersCollection handlersCollection) =>