Interface IIconSource
A source of icon images. This is the sourcing seam — where a displayed image comes from,
separate from where bytes are stored (IIconStore). The platform runs the built-in
StoredIconSource first (an explicitly-set icon wins), then the registered sources (via
o.AddIconSource<T>()) in order, so a consuming system can supply icons for subjects that
have no platform-stored icon — returning null to defer to the next source.
public interface IIconSource
Methods
ResolveAsync(IconSubject, CancellationToken)
Resolve an image for subject, or null to defer to the next source.
Task<IconImage> ResolveAsync(IconSubject subject, CancellationToken cancellationToken = default)
Parameters
subjectIconSubjectcancellationTokenCancellationToken