Table of Contents

Class NoOpIconProcessor

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Default IIconProcessor: returns icon bytes unchanged. Registered by the built-in store so processing is a no-op until a real processor (e.g. the ImageSharp downsizer) is registered.

public sealed class NoOpIconProcessor : IIconProcessor
Inheritance
NoOpIconProcessor
Implements
Inherited Members

Methods

ProcessAsync(byte[], string, CancellationToken)

Process the image, returning the (possibly transformed) bytes and content type. Implementations should return the input unchanged when no processing applies (e.g. an unsupported format).

public Task<IconContent> ProcessAsync(byte[] data, string contentType, CancellationToken cancellationToken = default)

Parameters

data byte[]
contentType string
cancellationToken CancellationToken

Returns

Task<IconContent>