Class AWSS3StorageImageResolver
Provides means to manage image buffers within the AWS S3 file system.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Resolvers.AWS
Assembly: SixLabors.ImageSharp.Web.Providers.AWS.dll
Syntax
public class AWSS3StorageImageResolver : IImageResolver
Constructors
| Edit this page View SourceAWSS3StorageImageResolver(IAmazonS3, string, string, GetObjectMetadataResponse?)
Initializes a new instance of the AWSS3StorageImageResolver class.
Declaration
public AWSS3StorageImageResolver(IAmazonS3 amazonS3, string bucketName, string imagePath, GetObjectMetadataResponse? metadataResponse = null)
Parameters
Type | Name | Description |
---|---|---|
IAmazonS3 | amazonS3 | The Amazon S3 Client |
string | bucketName | The bucket name. |
string | imagePath | The image path. |
GetObjectMetadataResponse | metadataResponse | Optional metadata response. |
Methods
| Edit this page View SourceGetMetaDataAsync()
Asynchronously gets metadata associated with this image.
Declaration
public Task<ImageMetadata> GetMetaDataAsync()
Returns
Type | Description |
---|---|
Task<ImageMetadata> | The ImageMetadata. |
OpenReadAsync()
Asynchronously gets the input image stream.
Declaration
public Task<Stream> OpenReadAsync()
Returns
Type | Description |
---|---|
Task<Stream> | The Task<TResult>. |