1 instantiation of ImageSourceToImageSourceServiceTypeMapping
Microsoft.Maui (1)
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (1)
13 s_instances.GetOrAdd(collection, static _ => new ImageSourceToImageSourceServiceTypeMapping());
5 references to ImageSourceToImageSourceServiceTypeMapping
Microsoft.Maui (5)
Hosting\ImageSources\ImageSourceServiceCollectionExtensions.cs (1)
48 ImageSourceToImageSourceServiceTypeMapping.GetInstance(services).Add<TImageSource, TImageSourceService>();
Hosting\ImageSources\ImageSourceServiceProvider.cs (2)
18 readonly ImageSourceToImageSourceServiceTypeMapping _imageSourceMapping; 23 _imageSourceMapping = ImageSourceToImageSourceServiceTypeMapping.GetInstance(collection);
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
10 private static readonly ConcurrentDictionary<IImageSourceServiceCollection, ImageSourceToImageSourceServiceTypeMapping> s_instances = new(); 12 internal static ImageSourceToImageSourceServiceTypeMapping GetInstance(IImageSourceServiceCollection collection) =>