• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web.Caching.Azure
      • AzureBlobStorageCache
      • AzureBlobStorageCacheOptions
    • SixLabors.ImageSharp.Web.Providers.Azure
      • AzureBlobContainerClientOptions
      • AzureBlobStorageImageProvider
      • AzureBlobStorageImageProviderOptions
    • SixLabors.ImageSharp.Web.Resolvers.Azure
      • AzureBlobStorageCacheResolver
      • AzureBlobStorageImageResolver

    Class AzureBlobStorageCache

    Implements an Azure Blob Storage based cache.

    Inheritance
    Object
    AzureBlobStorageCache
    Implements
    IImageCache
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.ImageSharp.Web.Caching.Azure
    Assembly: SixLabors.ImageSharp.Web.Providers.Azure.dll
    Syntax
    public class AzureBlobStorageCache : IImageCache

    Constructors

    | Improve this Doc View Source

    AzureBlobStorageCache(IOptions<AzureBlobStorageCacheOptions>)

    Initializes a new instance of the AzureBlobStorageCache class.

    Declaration
    public AzureBlobStorageCache(IOptions<AzureBlobStorageCacheOptions> cacheOptions)
    Parameters
    Type Name Description
    IOptions<AzureBlobStorageCacheOptions> cacheOptions

    The cache options.

    Methods

    | Improve this Doc View Source

    CreateIfNotExists(AzureBlobStorageCacheOptions, PublicAccessType)

    Creates a new container under the specified account if a container with the same name does not already exist.

    Declaration
    public static Response<BlobContainerInfo> CreateIfNotExists(AzureBlobStorageCacheOptions options, PublicAccessType accessType)
    Parameters
    Type Name Description
    AzureBlobStorageCacheOptions options

    The Azure Blob Storage cache options.

    PublicAccessType accessType

    Optionally specifies whether data in the container may be accessed publicly and the level of access. specifies full public read access for container and blob data. Clients can enumerate blobs within the container via anonymous request, but cannot enumerate containers within the storage account. specifies public read access for blobs. Blob data within this container can be read via anonymous request, but container data is not available. Clients cannot enumerate blobs within the container via anonymous request. specifies that the container data is private to the account owner.

    Returns
    Type Description
    Response<BlobContainerInfo>

    If the container does not already exist, a describing the newly created container. If the container already exists, null.

    | Improve this Doc View Source

    GetAsync(String)

    Declaration
    public async Task<IImageCacheResolver> GetAsync(string key)
    Parameters
    Type Name Description
    String key
    Returns
    Type Description
    Task<IImageCacheResolver>
    | Improve this Doc View Source

    SetAsync(String, Stream, ImageCacheMetadata)

    Declaration
    public Task SetAsync(string key, Stream stream, ImageCacheMetadata metadata)
    Parameters
    Type Name Description
    String key
    Stream stream
    ImageCacheMetadata metadata
    Returns
    Type Description
    Task

    Implements

    IImageCache
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX