Table of Contents

Class EurekaApplicationInfoManager

Namespace
Steeltoe.Discovery.Eureka
Assembly
Steeltoe.Discovery.Eureka.dll

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

clientOptionsMonitor IOptionsMonitor<EurekaClientOptions>
instanceOptionsMonitor IOptionsMonitor<EurekaInstanceOptions>
timeProvider TimeProvider
logger ILogger<EurekaApplicationInfoManager>

Properties

Instance

Gets the instance that represents the currently running application.

public InstanceInfo Instance { get; }

Property Value

InstanceInfo

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

newStatus InstanceStatus?

The status to assign, or null to preserve the current status.

newOverriddenStatus InstanceStatus?

The overridden status to assign, or null to preserve the current overridden status.

newMetadata IReadOnlyDictionary<string, string>

The metadata to assign, or null to preserve the current metadata. Once metadata has been assigned from code, future metadata changes from configuration are ignored.