Interface IImageProvider
Specifies the contract for returning images from different locations.
Namespace: SixLabors.ImageSharp.Web.Providers
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public interface IImageProvider
Properties
| Edit this page View SourceMatch
Gets or sets the method used by the resolver to identify itself as the correct resolver to use.
Declaration
Func<HttpContext, bool> Match { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<HttpContext, bool> |
ProcessingBehavior
Gets the processing behavior.
Declaration
ProcessingBehavior ProcessingBehavior { get; }
Property Value
| Type | Description |
|---|---|
| ProcessingBehavior |
Methods
| Edit this page View SourceGetAsync(HttpContext)
Gets the image resolver associated with the context.
Declaration
Task<IImageResolver?> GetAsync(HttpContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContext | context | The current HTTP request context. |
Returns
| Type | Description |
|---|---|
| Task<IImageResolver> | The IImageResolver. |
IsValidRequest(HttpContext)
Gets a value indicating whether the current request passes sanitizing rules.
Declaration
bool IsValidRequest(HttpContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContext | context | The current HTTP request context. |
Returns
| Type | Description |
|---|---|
| bool |