Beispiel #1
0
 // Constructor used via Dependency Injection
 public EurekaDiscoveryManager(
     IOptionsMonitor <EurekaClientOptions> clientConfig,
     IOptionsMonitor <EurekaInstanceOptions> instConfig,
     EurekaDiscoveryClient client,
     ILoggerFactory logFactory = null)
 {
     _logger       = logFactory?.CreateLogger <DiscoveryManager>();
     _clientConfig = clientConfig;
     _instConfig   = instConfig;
     Client        = client;
 }
Beispiel #2
0
 public EurekaApplicationsHealthContributor(EurekaDiscoveryClient discoveryClient, ILogger <EurekaApplicationsHealthContributor> logger = null)
 {
     _discoveryClient = discoveryClient;
     _logger          = logger;
 }
 public EurekaServerHealthContributor(EurekaDiscoveryClient discoveryClient, EurekaApplicationInfoManager appInfoManager, ILogger <EurekaServerHealthContributor> logger = null)
 {
     _discoveryClient = discoveryClient;
     _appInfoManager  = appInfoManager;
     _logger          = logger;
 }