Table of Contents

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
object
ServiceBindingMetadata
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

DateTimeOffset?

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

DateTimeOffset?

Methods

Equals(ServiceBindingMetadata)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ServiceBindingMetadata other)

Parameters

other ServiceBindingMetadata

An object to compare with this object.

Returns

bool

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

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.