public Discovery(InitializationOptions options) { _logger = options.Logger ?? new NullLogger <Discovery>(); _configOptions = new ConfigOptions(); _configOptions.SetConfigFilePath(options.ConfigFilePath); _configOptions.SetExtensions(options.Extension); _configOptions.SetLogger(_logger); switch (options.Extension) { case Extension.Consul: _discoverySource = new ConsulDiscovery(_configOptions, _logger); break; default: break; } }
public void AddDiscoverySource(DiscoverySource discoverySource) { _ctx.DiscoverySources.Add(discoverySource); }