Class NoOpIconProcessor
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
databyte[]contentTypestringcancellationTokenCancellationToken