Table of Contents

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

storageOptions IOptions<AzureBlobStorageImageProviderOptions>

The blob storage options.

formatUtilities FormatUtilities

Contains various format helper methods based on the current configuration.

serviceProvider IServiceProvider

The 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

Func<HttpContext, bool>

ProcessingBehavior

Gets the processing behavior.

public ProcessingBehavior ProcessingBehavior { get; }

Property Value

ProcessingBehavior

Methods

GetAsync(HttpContext)

Gets the image resolver associated with the context.

public 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.

public bool IsValidRequest(HttpContext context)

Parameters

context HttpContext

The current HTTP request context.

Returns

bool

The bool