Amazon.RegionEndpoint.GetEndpointForService C# (CSharp) Метод

GetEndpointForService() публичный Метод

Gets the endpoint for a service in a region, optionally selecting a dualstack compatible endpoint.
Thrown when the request service does not have a valid endpoint in the region.
public GetEndpointForService ( string serviceName, bool dualStack ) : Endpoint
serviceName string The services system name.
dualStack bool /// If true a dualstack endpoint is returned. It is the user's responsibility to verify that the given service /// supports a dualstack endpoint for the region. ///
Результат Endpoint
        public Endpoint GetEndpointForService(string serviceName, bool dualStack)
        {
            return InternedRegionEndpoint.GetEndpointForService(serviceName, dualStack);
        }

Same methods

RegionEndpoint::GetEndpointForService ( string serviceName ) : Endpoint

Usage Example

 public AmazonS3Region(RegionEndpoint region)
 {
     Name = region.DisplayName;
     Identifier = region.SystemName;
     AmazonRegion = region;
     Hostname = region.GetEndpointForService("s3").Hostname;
 }
All Usage Examples Of Amazon.RegionEndpoint::GetEndpointForService