I've looked at a number of examples of how to use the AmazonS3Client and S3Response objects and never have I seen anyone bothering to dispose of them, which makes me wonder is there some implied knowledge that I am missing?
public class S3Response : IDisposable
{
public void Dispose();
~S3Response();
}
public class AmazonS3Client : AmazonS3, IDisposable
{
public void Dispose();
~AmazonS3Client();
}
They both clearly implement IDisposable
(which is telling me I should be disposing them myself) but they also specify a destructor method, which (along with the aforementioned examples) is making me think have I missed something automagical?
Could it be that the destructor is calling Dispose
behind the scenes? Surely it is bad form to perform this kind of magic behaviour.
Does anyone with more experience of the Amazon S3 service have any insight to offer?