Table of Contents

Interface IImageProvider

Namespace
SixLabors.ImageSharp.Web.Providers
Assembly
SixLabors.ImageSharp.Web.dll

Specifies the contract for returning images from different locations.

public interface IImageProvider

Properties

Match

Gets or sets the method used by the resolver to identify itself as the correct resolver to use.

Func<HttpContext, bool> Match { get; set; }

Property Value

Func<HttpContext, bool>

ProcessingBehavior

Gets the processing behavior.

ProcessingBehavior ProcessingBehavior { get; }

Property Value

ProcessingBehavior

Methods

GetAsync(HttpContext)

Gets the image resolver associated with the context.

Task<IImageResolver?> GetAsync(HttpContext context)

Parameters

context HttpContext

The current HTTP request context.

Returns

Task<IImageResolver>

The IImageResolver.

IsValidRequest(HttpContext)

Gets a value indicating whether the current request passes sanitizing rules.

bool IsValidRequest(HttpContext context)

Parameters

context HttpContext

The current HTTP request context.

Returns

bool

The bool