Table of Contents

Class StoredIconSource

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Built-in IIconSource that serves an explicitly-set icon: when the subject has an IconReference, it resolves to that icon's serving-endpoint URL; otherwise null. Registered first, ahead of any consumer sources, so a platform-stored icon takes precedence.

public sealed class StoredIconSource : IIconSource
Inheritance
StoredIconSource
Implements
Inherited Members

Methods

ResolveAsync(IconSubject, CancellationToken)

Resolve an image for subject, or null to defer to the next source.

public Task<IconImage> ResolveAsync(IconSubject subject, CancellationToken cancellationToken = default)

Parameters

subject IconSubject
cancellationToken CancellationToken

Returns

Task<IconImage>