Skip to content

Commit

Permalink
feat(setServiceUrl): use setServiceUrl instead of setServiceEndpoint
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Use SetServiceUrl to set the service endpoint rather than SetEndpoint
  • Loading branch information
mamoonraja committed Sep 10, 2019
1 parent 2182f33 commit 2c33bf8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BaseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace IBM.Cloud.SDK
public class BaseService
{
protected Authenticator authenticator;
protected string url;
protected string serviceUrl;
public string ServiceId { get; set; }
protected Dictionary<string, string> customRequestHeaders = new Dictionary<string, string>();
public static string PropNameServiceUrl = "URL";
Expand All @@ -46,7 +46,7 @@ public BaseService(Authenticator authenticator, string serviceId) {
props.TryGetValue(PropNameServiceUrl, out string url);
if (!string.IsNullOrEmpty(url))
{
SetEndpoint(url);
SetServiceUrl(url);
}
}

Expand All @@ -62,9 +62,9 @@ protected void SetAuthentication(RESTConnector connector)
}
}

public void SetEndpoint(string endpoint)
public void SetServiceUrl(string url)
{
url = endpoint;
serviceUrl = url;
}

/// <summary>
Expand Down

0 comments on commit 2c33bf8

Please # to comment.