/// <summary> /// Creates a new Open Service Broker Client. /// </summary> /// <param name="uri">The base URI of the Open Service Broker API instance (without the version number).</param> /// <param name="credentials">Optional HTTP Basic Auth credentials used to authenticate against the REST interface.</param> public OpenServiceBrokerClient(Uri uri, NetworkCredential?credentials = null) : base(uri, errorHandler: new OpenServiceBrokerErrorHandler()) { if (credentials != null) { HttpClient.AddBasicAuth(credentials); } SetApiVersion(DefaultApiVersion); }