Table of Contents

Class ServiceInstanceMetadata

Namespace
OpenServiceBroker.Instances
Assembly
OpenServiceBroker.Model.dll

Metadata for a Service Instance.

public class ServiceInstanceMetadata : IEquatable<ServiceInstanceMetadata>
Inheritance
object
ServiceInstanceMetadata
Implements
Extension Methods

Properties

Attributes

Broker specific key-value pairs generated by the Service Broker that MAY imply behaviour changes by the Platform. The Platform SHOULD ignore attributes that it does not support.

[JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)]
public JObject Attributes { get; set; }

Property Value

JObject

Labels

Broker specified key-value pairs specifying attributes of Service Instances that are meaningful and relevant to Platform users, but do not directly imply behaviour changes by the Platform.

[JsonProperty("labels", NullValueHandling = NullValueHandling.Ignore)]
public JObject Labels { get; set; }

Property Value

JObject

Methods

Equals(ServiceInstanceMetadata)

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

public bool Equals(ServiceInstanceMetadata other)

Parameters

other ServiceInstanceMetadata

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.