I created an empty .Net Core application and installed nuget packages for Both Amazon.Core and Amazon.S3.
Then I tried to use S3 to get an object but I'm stuck at the very first moment... Amazon.AWSClientFactory is nowhere to be found inside the assembly. Even with dotPeek I tried to search this factory method but I couldn't find it. Even the sample code from Amazon doesn't work.
Where I supposed to find this class ?
Amazon.Core and Amazon.S3 are part of the AWS SDK for .NET v3. Per the AWS SDK for .NET Version 3 Migration Guide:
Change: AWSClientFactory is removed
Description: Use service client constructors instead of the AWSClientFactory
Or in other words, use IAmazonS3 and AmazonS3Client found in the Amazon.S3 nuget package:
using (IAmazonS3 client = new AmazonS3Client())
{
// do stuff
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With