Esempio n. 1
0
 public RegionEndpoint.Endpoint GetEndpointForService(string serviceName, bool dualStack)
 {
     RegionEndpoint.Endpoint endpoint = null;
     lock (_serviceMap)
     {
         if (!_servicesLoaded)
         {
             ParseAllServices();
             _servicesLoaded = true;
         }
         if (!_serviceMap.TryGetEndpoint(serviceName, dualStack, out endpoint))
         {
             return(CreateUnknownEndpoint(serviceName, dualStack));
         }
         return(endpoint);
     }
 }