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

DetectMismatchWithHeadBucketFallback() 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 DetectMismatchWithHeadBucketFallback ( AmazonS3Uri requestedBucketUri, AmazonServiceException serviceException, ImmutableCredentials credentials ) : string
requestedBucketUri AmazonS3Uri
serviceException Amazon.Runtime.AmazonServiceException
credentials Amazon.Runtime.ImmutableCredentials
return string
        internal static string DetectMismatchWithHeadBucketFallback(AmazonS3Uri requestedBucketUri, AmazonServiceException serviceException, ImmutableCredentials credentials)
        {
            return GetCorrectRegion(requestedBucketUri, serviceException) ??
                CheckRegionAndUpdateCache(requestedBucketUri, GetBucketRegionNoPipeline(requestedBucketUri.Bucket, credentials));
        }