Skip to content

Commit 5ccd235

Browse files
Merge pull request #55 from jeremysimmons/patch-1
Update imageproviders.md
2 parents 94a5f2b + 2664b38 commit 5ccd235

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

articles/imagesharp.web/imageproviders.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ paket add SixLabors.ImageSharp.Web.Providers.AWS --version VERSION_NUMBER
9999

100100
Once installed the cache @SixLabors.ImageSharp.Web.Providers.AWS.AWSS3StorageImageProviderOptions can be configured as follows:
101101

102-
103102
```c#
104103
// Configure and register the buckets.
105104
// Alteratively use `appsettings.json` to represent the class and bind those settings.
@@ -108,14 +107,14 @@ Once installed the cache @SixLabors.ImageSharp.Web.Providers.AWS.AWSS3StorageIma
108107
// The "S3Buckets" collection allows registration of multiple buckets.
109108
options.S3Buckets.Add(new AWSS3BucketClientOptions
110109
{
111-
options.Endpoint = {AWS_ENDPOINT};
112-
options.BucketName = {AWS_BUCKET_NAME};
113-
options.AccessKey = {AWS_ACCESS_KEY};
114-
options.AccessSecret = {AWS_ACCESS_SECRET};
115-
options.Region = {AWS_REGION};
110+
Endpoint = AWS_ENDPOINT,
111+
BucketName = AWS_BUCKET_NAME,
112+
AccessKey = AWS_ACCESS_KEY,
113+
AccessSecret = AWS_ACCESS_SECRET,
114+
Region = AWS_REGION
116115
});
117116
})
118-
.AddProvider<AWSS3StorageImageProviderOptions>()
117+
.AddProvider<AWSS3StorageImageProvider>()
119118
```
120119

121120
Url requests are matched in accordance to the following rule:

0 commit comments

Comments
 (0)