Amazon.Internal.RegionEndpointV3.CreateUnknownEndpoint C# (CSharp) Méthode

CreateUnknownEndpoint() private méthode

private CreateUnknownEndpoint ( string serviceName, bool dualStack ) : RegionEndpoint.Endpoint
serviceName string
dualStack bool
Résultat RegionEndpoint.Endpoint
        private RegionEndpoint.Endpoint CreateUnknownEndpoint(string serviceName, bool dualStack)
        {
            string template = (string)_partitionJsonData["defaults"]["hostname"];

            if (dualStack)
            {
                template = template.Replace("{region}", "dualstack.{region}");
            }

            string hostname = template.Replace("{service}", serviceName)
                                 .Replace("{region}", RegionName)
                                 .Replace("{dnsSuffix}", (string)_partitionJsonData["dnsSuffix"]);

            return new RegionEndpoint.Endpoint(hostname, null, null);
        }