Table of Contents

Class ServiceBindingBase

Namespace
OpenServiceBroker.Bindings
Assembly
OpenServiceBroker.Model.dll
public abstract class ServiceBindingBase
Inheritance
ServiceBindingBase
Derived
Inherited Members
Extension Methods

Properties

Credentials

A free-form hash of credentials that can be used by applications or users to access the service. MUST be returned if the Service Broker supports generation of credentials.

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

Property Value

JObject

RouteServiceUrl

A URL to which the Platform MUST proxy requests for the address sent with Route in the request body. Requires: RouteForwarding MUST be declared in the Catalog endpoint or the Platform can consider the response invalid.

[JsonProperty("route_service_url", NullValueHandling = NullValueHandling.Ignore)]
public Uri RouteServiceUrl { get; set; }

Property Value

Uri

SyslogDrainUrl

A URL to which logs MUST be streamed. Requires: SyslogDrain MUST be declared in the Catalog endpoint or the Platform can consider the response invalid.

[JsonProperty("syslog_drain_url", NullValueHandling = NullValueHandling.Ignore)]
public Uri SyslogDrainUrl { get; set; }

Property Value

Uri

VolumeMounts

An array of configuration for remote storage devices to be mounted into an application container filesystem. Requires: VolumeMount MUST be declared in the Catalog endpoint or the Platform can consider the response invalid.

[JsonProperty("volume_mounts")]
public List<ServiceBindingVolumeMount> VolumeMounts { get; }

Property Value

List<ServiceBindingVolumeMount>

Methods

Equals(ServiceBindingBase)

protected bool Equals(ServiceBindingBase other)

Parameters

other ServiceBindingBase

Returns

bool

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.

ShouldSerializeVolumeMounts()

Do not serialize volume mounts if there are none. On some platforms (PCF for example), binding credentials to an application fails when an empty list of volume mounts is returned.

public bool ShouldSerializeVolumeMounts()

Returns

bool