Class EurekaApplicationInfoManager
Provides access to the Eureka instance that represents the currently running application.
public sealed class EurekaApplicationInfoManager : IDisposable
- Inheritance
-
EurekaApplicationInfoManager
- Implements
- Inherited Members
Constructors
EurekaApplicationInfoManager(IOptionsMonitor<EurekaClientOptions>, IOptionsMonitor<EurekaInstanceOptions>, TimeProvider, ILogger<EurekaApplicationInfoManager>)
public EurekaApplicationInfoManager(IOptionsMonitor<EurekaClientOptions> clientOptionsMonitor, IOptionsMonitor<EurekaInstanceOptions> instanceOptionsMonitor, TimeProvider timeProvider, ILogger<EurekaApplicationInfoManager> logger)
Parameters
clientOptionsMonitorIOptionsMonitor<EurekaClientOptions>instanceOptionsMonitorIOptionsMonitor<EurekaInstanceOptions>timeProviderTimeProviderloggerILogger<EurekaApplicationInfoManager>
Properties
Instance
Gets the instance that represents the currently running application.
public InstanceInfo Instance { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
UpdateInstance(InstanceStatus?, InstanceStatus?, IReadOnlyDictionary<string, string?>?)
Atomically updates Instance by refreshing from configuration and applying the requested changes.
public void UpdateInstance(InstanceStatus? newStatus, InstanceStatus? newOverriddenStatus, IReadOnlyDictionary<string, string?>? newMetadata)
Parameters
newStatusInstanceStatus?The status to assign, or
nullto preserve the current status.newOverriddenStatusInstanceStatus?The overridden status to assign, or
nullto preserve the current overridden status.newMetadataIReadOnlyDictionary<string, string>The metadata to assign, or
nullto preserve the current metadata. Once metadata has been assigned from code, future metadata changes from configuration are ignored.