Table of Contents

Class LeaseInfo

Namespace
Steeltoe.Discovery.Eureka.AppInfo
Assembly
Steeltoe.Discovery.Eureka.dll
public sealed class LeaseInfo
Inheritance
LeaseInfo
Inherited Members

Properties

Duration

Gets the client-specified time for eviction (e.g. how long to wait without renewal).

public TimeSpan? Duration { get; }

Property Value

TimeSpan?

EvictionTimeUtc

Gets the de-registration time, in UTC, which is the time when the lease was removed.

public DateTime? EvictionTimeUtc { get; }

Property Value

DateTime?

LastRenewalTimeUtc

Gets the time, in UTC, when the lease was last renewed.

public DateTime? LastRenewalTimeUtc { get; }

Property Value

DateTime?

RegistrationTimeUtc

Gets the registration time, in UTC, which is the time when the lease was first registered.

public DateTime? RegistrationTimeUtc { get; }

Property Value

DateTime?

RenewalInterval

Gets the client-specified time how often the client sends a heartbeat to renew the lease.

public TimeSpan? RenewalInterval { get; }

Property Value

TimeSpan?

ServiceUpTimeUtc

Gets the time, in UTC, when the leased service was marked as UP.

public DateTime? ServiceUpTimeUtc { get; }

Property Value

DateTime?

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.