예제 #1
0
        public AggregateServiceDiscoverySettings(Configuration.Config config)
        {
            var discoveryMethods = config.GetStringList("discovery-methods");

            if (!discoveryMethods.Any())
            {
                throw new ArgumentOutOfRangeException(nameof(discoveryMethods), "At least one discovery method should be specified");
            }

            DiscoveryMethods = discoveryMethods.ToList();
        }
예제 #2
0
 public AggregateServiceDiscoverySettings(Configuration.Config config)
 {
     DiscoveryMethods = config.GetStringList("discovery-methods").ToList();
 }