Class ServiceBindingMetadata
- Namespace
- OpenServiceBroker.Bindings
- Assembly
- OpenServiceBroker.Model.dll
Metadata for a Service Binding. This is mainly used to manage the Service Binding itself and SHOULD NOT contain any data that is needed to connect to the Service Instance.
public class ServiceBindingMetadata : IEquatable<ServiceBindingMetadata>
- Inheritance
-
objectServiceBindingMetadata
- Implements
- Extension Methods
Properties
ExpiresAt
The date and time when the Service Binding becomes invalid and SHOULD NOT or CANNOT be used anymore.
[JsonProperty("expires_at", NullValueHandling = NullValueHandling.Ignore)]
public DateTimeOffset? ExpiresAt { get; set; }
Property Value
RenewBefore
The date and time before the Service Binding SHOULD be renewed. Applications or Platforms MAY use this field to initiate a Service Binding rotation (see PredecessorBindingId) or create a new Service Binding on time. If ExpiresAt is also present, this MUST be before or equal to ExpiresAt.
[JsonProperty("renew_before", NullValueHandling = NullValueHandling.Ignore)]
public DateTimeOffset? RenewBefore { get; set; }
Property Value
Methods
Equals(ServiceBindingMetadata)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ServiceBindingMetadata other)
Parameters
otherServiceBindingMetadataAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.