Class GravatarIconSource
Built-in IIconSource that resolves a user subject with an email to its Gravatar image, when enabled via IconSettings. Registered after StoredIconSource and any consumer sources, so an explicitly uploaded user icon (and custom sources) take precedence and Gravatar is a fallback. Returns null for team subjects, users without an email, or when disabled.
public sealed class GravatarIconSource : IIconSource
- Inheritance
-
GravatarIconSource
- Implements
- Inherited Members
Constructors
GravatarIconSource(IconSettings)
public GravatarIconSource(IconSettings settings = null)
Parameters
settingsIconSettings
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
subjectIconSubjectcancellationTokenCancellationToken