Class DiscoveryEndpointBase
Class containing the data for one endpoint returned from a endpoint discovery request
This class is only intended for internal use inside the AWS client libraries. Callers shouldn't ever interact directly with objects of this class.
public abstract class DiscoveryEndpointBase
- Inheritance
-
DiscoveryEndpointBase
- Derived
- Inherited Members
Constructors
DiscoveryEndpointBase(string, long)
Constructs a new DiscoveryEndpoint
protected DiscoveryEndpointBase(string address, long cachePeriodInMinutes)
Parameters
address
stringThe address of the endpoint
cachePeriodInMinutes
longThe cache period for the endpoint in minutes
Properties
Address
The address of the endpoint.
public string Address { get; protected set; }
Property Value
CachePeriodInMinutes
The cache period for the endpoint in minutes
public long CachePeriodInMinutes { get; protected set; }
Property Value
Methods
ExtendExpiration(long)
Extends the endpoint expiration by the specified number of minutes from now.
public void ExtendExpiration(long minutes)
Parameters
minutes
long
HasExpired()
Calculates if this endpoint has expired
public bool HasExpired()
Returns
- bool
A boolean value indicating if the cache period has expired