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(); }
public AggregateServiceDiscoverySettings(Configuration.Config config) { DiscoveryMethods = config.GetStringList("discovery-methods").ToList(); }