Amazon.S3.Util.BucketRegionDetector.DetectMismatchWithHeadBucketFallbackAsync C# (CSharp) Method

DetectMismatchWithHeadBucketFallbackAsync() static private method

Detects if the signature is malformed, and the requested bucket is in a Region different from the Region of the request.
static private DetectMismatchWithHeadBucketFallbackAsync ( AmazonS3Uri requestedBucketUri, AmazonServiceException serviceException, ImmutableCredentials credentials ) : Task
requestedBucketUri AmazonS3Uri
serviceException Amazon.Runtime.AmazonServiceException
credentials Amazon.Runtime.ImmutableCredentials
return Task
        internal static async Task<string> DetectMismatchWithHeadBucketFallbackAsync(AmazonS3Uri requestedBucketUri, AmazonServiceException serviceException, ImmutableCredentials credentials)
        {
            return GetCorrectRegion(requestedBucketUri, serviceException) ??
                CheckRegionAndUpdateCache(requestedBucketUri, await GetBucketRegionNoPipelineAsync(requestedBucketUri.Bucket, credentials));
        }