Show / Hide Table of Contents

Class ServiceBindingBase

Inheritance
Object
ServiceBindingBase
ServiceBinding
ServiceBindingResource
Namespace: OpenServiceBroker.Bindings
Assembly: OpenServiceBroker.Model.dll
Syntax
public abstract class ServiceBindingBase : Object

Constructors

ServiceBindingBase()

Declaration
protected ServiceBindingBase()

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.

Declaration
public JObject Credentials { get; set; }
Property Value
Type Description
Newtonsoft.Json.Linq.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.

Declaration
public Uri RouteServiceUrl { get; set; }
Property Value
Type Description
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.

Declaration
public Uri SyslogDrainUrl { get; set; }
Property Value
Type Description
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.

Declaration
public List<ServiceBindingVolumeMount> VolumeMounts { get; }
Property Value
Type Description
List<ServiceBindingVolumeMount>

Methods

Equals(ServiceBindingBase)

Declaration
protected bool Equals(ServiceBindingBase other)
Parameters
Type Name Description
ServiceBindingBase other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

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.

Declaration
public bool ShouldSerializeVolumeMounts()
Returns
Type Description
Boolean

Extension Methods

CompletableWithResult.Complete<TCompletable, TResult>(TCompletable, TResult)
In This Article
Back to top Copyright Bastian Eicher