Skip to content

Commit 453ab3a

Browse files
committed
Remove SetCredential(apikey) from base service
1 parent e98d4fc commit 453ab3a

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/IBM.WatsonDeveloperCloud/Service/IWatsonService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public interface IWatsonService
3030
string Password { get; set; }
3131

3232
void SetCredential(string userName, string password);
33-
void SetCredential(string apikey);
3433
void SetCredential(TokenOptions tokenOptions);
3534
void SetEndpoint(string endpoint);
3635
}

src/IBM.WatsonDeveloperCloud/Service/WatsonService.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,7 @@ public void SetCredential(string userName, string password)
9292
this.UserName = userName;
9393
this.Password = password;
9494
}
95-
96-
/// <summary>
97-
/// Sets the apikey of the service.
98-
/// Also sets the endpoint if the user has not set the endpoint.
99-
/// </summary>
100-
/// <param name="apikey"></param>
101-
public void SetCredential(string apikey)
102-
{
103-
this.ApiKey = apikey;
104-
if (!_userSetEndpoint)
105-
this.Endpoint = "https://gateway-a.watsonplatform.net/visual-recognition/api";
106-
}
107-
95+
10896
/// <summary>
10997
/// Sets the tokenOptions for the service.
11098
/// Also sets the endpoint if the user has not set the endpoint.

0 commit comments

Comments
 (0)