1 implementation of IImageSourceServiceProvider
Microsoft.Maui (1)
Hosting\ImageSources\ImageSourceServiceProvider.cs (1)
10
sealed class ImageSourceServiceProvider : MauiFactory,
IImageSourceServiceProvider
12 references to IImageSourceServiceProvider
Microsoft.Maui (12)
Handlers\View\ViewHandler.cs (2)
315
var
provider = handler.GetRequiredService<
IImageSourceServiceProvider
>();
Hosting\ImageSources\ImageSourceServiceCollectionExtensions.cs (1)
39
services.AddSingleton(provider => implementationFactory(((
IImageSourceServiceProvider
)provider).HostServiceProvider));
Hosting\ImageSources\ImageSourceServiceProviderExtensions.cs (5)
8
public static IImageSourceService? GetImageSourceService(this
IImageSourceServiceProvider
provider, IImageSource imageSource) =>
11
public static IImageSourceService? GetImageSourceService<T>(this
IImageSourceServiceProvider
provider)
15
public static IImageSourceService GetRequiredImageSourceService(this
IImageSourceServiceProvider
provider, IImageSource imageSource) =>
18
public static IImageSourceService GetRequiredImageSourceService<T>(this
IImageSourceServiceProvider
provider)
22
public static IImageSourceService GetRequiredImageSourceService(this
IImageSourceServiceProvider
provider, Type imageSourceType)
Hosting\ImageSources\ImageSourcesMauiAppBuilderExtensions.cs (1)
31
builder.Services.TryAddSingleton<
IImageSourceServiceProvider
>(svcs => new ImageSourceServiceProvider(svcs.GetRequiredService<IImageSourceServiceCollection>(), svcs));
ImageSources\ImageSourceExtensions.cs (2)
41
var
provider = services.GetRequiredService<
IImageSourceServiceProvider
>();
Platform\Standard\ViewExtensions.cs (1)
15
public static Task UpdateBackgroundImageSourceAsync(this object platformView, IImageSource? imageSource,
IImageSourceServiceProvider
? provider)