Class AzureBlobStorageImageProvider
- Namespace
- SixLabors.ImageSharp.Web.Azure.Providers
- Assembly
- SixLabors.ImageSharp.Web.Providers.Azure.dll
Returns images stored in Azure Blob Storage.
public class AzureBlobStorageImageProvider : IImageProvider
- Inheritance
-
AzureBlobStorageImageProvider
- Implements
- Inherited Members
Constructors
AzureBlobStorageImageProvider(IOptions<AzureBlobStorageImageProviderOptions>, FormatUtilities, IServiceProvider)
Initializes a new instance of the AzureBlobStorageImageProvider class.
public AzureBlobStorageImageProvider(IOptions<AzureBlobStorageImageProviderOptions> storageOptions, FormatUtilities formatUtilities, IServiceProvider serviceProvider)
Parameters
storageOptionsIOptions<AzureBlobStorageImageProviderOptions>The blob storage options.
formatUtilitiesFormatUtilitiesContains various format helper methods based on the current configuration.
serviceProviderIServiceProviderThe current service provider
Properties
Match
Gets or sets the method used by the resolver to identify itself as the correct resolver to use.
public Func<HttpContext, bool> Match { get; set; }
Property Value
ProcessingBehavior
Gets the processing behavior.
public ProcessingBehavior ProcessingBehavior { get; }
Property Value
Methods
GetAsync(HttpContext)
Gets the image resolver associated with the context.
public 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.
public bool IsValidRequest(HttpContext context)
Parameters
contextHttpContextThe current HTTP request context.