I'm calling dispose method separately, but still the line marked as not disposed
S3 s3;
if (!string.IsNullOrWhiteSpace(AwsAppId) && !string.IsNullOrWhiteSpace(AwsAppId))
{
s3 = new S3(AwsAppId, AwsSecretKey); // this line is marked as not disposed
}
else
{
s3 = new S3(); // this line is marked as not disposed
}
var signedUrl = s3.GetPreSignedUrl(PbAppUserBucket, fileUrl, 10, HttpVerb.GET);
photo.Filename = signedUrl;
s3.Dispose();
I'm calling dispose method separately, but still the line marked as not disposed