Пример #1
0
 // no caching
 public IList <Uri> GetGateways()
 {
     lock (lockable)
     {
         // FindAllGatewayProxyEndpoints already returns a deep copied List<Uri>.
         return(siloInstanceManager.FindAllGatewayProxyEndpoints());
     }
 }
Пример #2
0
 // no caching
 public IList <Uri> GetGateways()
 {
     lock (lockable)
     {
         IEnumerable <Uri> gatewayEndpoints = siloInstanceManager.FindAllGatewayProxyEndpoints();
         if (gatewayEndpoints != null && gatewayEndpoints.Any())
         {
             return(gatewayEndpoints.ToList());
         }
         return(new List <Uri>());
     }
 }