1 implementation of IImageSourceServiceCollection
Microsoft.Maui (1)
Hosting\ImageSources\ImageSourcesMauiAppBuilderExtensions.cs (1)
52 class ImageSourceServiceBuilder : MauiServiceCollection, IImageSourceServiceCollection
16 references to IImageSourceServiceCollection
Microsoft.Maui (14)
Hosting\ImageSources\ImageSourceServiceCollectionExtensions.cs (5)
16 public static IImageSourceServiceCollection AddService<TImageSource, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImageSourceService>(this IImageSourceServiceCollection services) 35 public static IImageSourceServiceCollection AddService<TImageSource>(this IImageSourceServiceCollection services, Func<IServiceProvider, IImageSourceService<TImageSource>> implementationFactory) 44 private static void AddImageSourceMapping<TImageSource, TImageSourceService>(this IImageSourceServiceCollection services)
Hosting\ImageSources\ImageSourceServiceProvider.cs (1)
20 public ImageSourceServiceProvider(IImageSourceServiceCollection collection, IServiceProvider hostServiceProvider)
Hosting\ImageSources\ImageSourcesMauiAppBuilderExtensions.cs (6)
24 public static MauiAppBuilder ConfigureImageSources(this MauiAppBuilder builder, Action<IImageSourceServiceCollection>? configureDelegate) 31 builder.Services.TryAddSingleton<IImageSourceServiceProvider>(svcs => new ImageSourceServiceProvider(svcs.GetRequiredService<IImageSourceServiceCollection>(), svcs)); 32 builder.Services.TryAddSingleton<IImageSourceServiceCollection>(svcs => new ImageSourceServiceBuilder(svcs.GetServices<ImageSourceRegistration>())); 39 private readonly Action<IImageSourceServiceCollection> _registerAction; 41 public ImageSourceRegistration(Action<IImageSourceServiceCollection> registerAction) 46 internal void AddRegistration(IImageSourceServiceCollection builder)
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
10 private static readonly ConcurrentDictionary<IImageSourceServiceCollection, ImageSourceToImageSourceServiceTypeMapping> s_instances = new(); 12 internal static ImageSourceToImageSourceServiceTypeMapping GetInstance(IImageSourceServiceCollection collection) =>
Microsoft.Maui.Controls.Compatibility (2)
MauiHandlersCollectionExtensions.cs (2)
105 public static IImageSourceServiceCollection AddCompatibilityServices(this IImageSourceServiceCollection services, params global::System.Reflection.Assembly[] assemblies)