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
ProcessingBehavior
Gets the processing behavior.
ProcessingBehavior ProcessingBehavior { get; }
Property Value
Methods
GetAsync(HttpContext)
Gets the image resolver associated with the context.
Task<IImageResolver?> GetAsync(HttpContext context)
Parameters
contextHttpContextThe 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
contextHttpContextThe current HTTP request context.