-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
IImageSourceServiceProvider.cs
33 lines (27 loc) · 1.39 KB
/
IImageSourceServiceProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#nullable enable
using System;
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Maui
{
public interface IImageSourceServiceProvider : IServiceProvider
{
IServiceProvider HostServiceProvider { get; }
IImageSourceService? GetImageSourceService(Type imageSource);
#if !NETSTANDARD
[Obsolete("Use GetImageSourceService instead.")]
[RequiresDynamicCode("The GetImageSourceServiceType method is not AOT compatible. Use GetImageSourceService instead.")]
[RequiresUnreferencedCode("The GetImageSourceServiceType method is not trimming compatible. Use GetImageSourceService instead.")]
Type GetImageSourceServiceType(Type imageSource) => throw new NotImplementedException();
[Obsolete("Use GetImageSourceService instead.")]
[RequiresUnreferencedCode("The GetImageSourceType method is not trimming compatible. Use GetImageSourceService instead.")]
Type GetImageSourceType(Type imageSource) => throw new NotImplementedException();
#else
[Obsolete("Use GetImageSourceService instead.")]
[RequiresUnreferencedCode("The GetImageSourceType method is not trimming compatible. Use GetImageSourceService instead.")]
Type GetImageSourceServiceType(Type imageSource);
[Obsolete("Use GetImageSourceService instead.")]
[RequiresUnreferencedCode("The GetImageSourceType method is not trimming compatible. Use GetImageSourceService instead.")]
Type GetImageSourceType(Type imageSource);
#endif
}
}