Class PhysicalFileSystemCacheResolver
Provides means to manage image buffers within the PhysicalFileSystemCache.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Resolvers
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public class PhysicalFileSystemCacheResolver : IImageCacheResolver
Constructors
| Edit this page View SourcePhysicalFileSystemCacheResolver(FileInfo, FormatUtilities)
Initializes a new instance of the PhysicalFileSystemCacheResolver class.
Declaration
public PhysicalFileSystemCacheResolver(FileInfo metaFileInfo, FormatUtilities formatUtilities)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | metaFileInfo | The cached metadata file info. |
FormatUtilities | formatUtilities | Contains various format helper methods based on the current configuration. |
Methods
| Edit this page View SourceGetMetaDataAsync()
Asynchronously gets metadata associated with this image.
Declaration
public Task<ImageCacheMetadata> GetMetaDataAsync()
Returns
Type | Description |
---|---|
Task<ImageCacheMetadata> | The ImageCacheMetadata. |
OpenReadAsync()
Asynchronously gets the input image stream.
Declaration
public Task<Stream> OpenReadAsync()
Returns
Type | Description |
---|---|
Task<Stream> | The Task<TResult>. |