Table of Contents

Class DefaultIconSource

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Built-in IIconSource that resolves a user subject to a configured generic default image (DefaultUserIconUrl), when set. Registered after GravatarIconSource, so it applies when Gravatar is disabled or produced nothing. Returns null when no default is configured (the avatar then falls back to initials).

public sealed class DefaultIconSource : IIconSource
Inheritance
DefaultIconSource
Implements
Inherited Members

Constructors

DefaultIconSource(IconSettings)

public DefaultIconSource(IconSettings settings = null)

Parameters

settings IconSettings

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>