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(IFileInfo, FormatUtilities)
Initializes a new instance of the PhysicalFileSystemCacheResolver class.
Declaration
public PhysicalFileSystemCacheResolver(IFileInfo metaFileInfo, FormatUtilities formatUtilities)
Parameters
Type | Name | Description |
---|---|---|
IFileInfo | 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>. |