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
| Improve this Doc 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
| Improve this Doc View SourceGetMetaDataAsync()
Asynchronously gets metadata associated with this image.
Declaration
public async 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>. |