Table of Contents

Class PhysicalFileSystemCacheResolver

Namespace
SixLabors.ImageSharp.Web.Resolvers
Assembly
SixLabors.ImageSharp.Web.dll

Provides means to manage image buffers within the PhysicalFileSystemCache.

public class PhysicalFileSystemCacheResolver : IImageCacheResolver
Inheritance
PhysicalFileSystemCacheResolver
Implements
Inherited Members

Constructors

PhysicalFileSystemCacheResolver(FileInfo, FormatUtilities)

Initializes a new instance of the PhysicalFileSystemCacheResolver class.

public PhysicalFileSystemCacheResolver(FileInfo metaFileInfo, FormatUtilities formatUtilities)

Parameters

metaFileInfo FileInfo

The cached metadata file info.

formatUtilities FormatUtilities

Contains various format helper methods based on the current configuration.

Methods

GetMetaDataAsync()

Asynchronously gets metadata associated with this image.

public Task<ImageCacheMetadata> GetMetaDataAsync()

Returns

Task<ImageCacheMetadata>

The ImageCacheMetadata.

OpenReadAsync()

Asynchronously gets the input image stream.

public Task<Stream> OpenReadAsync()

Returns

Task<Stream>

The Task<TResult>.