Skip to content

Commit a6df1b8

Browse files
committed
feat(SetServiceUrl): provide setServiceUrl method and use serviceUrl instead of Url
Use serviceUrl instead of Url for service level urls
1 parent c20297f commit a6df1b8

File tree

15 files changed

+263
-875
lines changed

15 files changed

+263
-875
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ IEnumerator TokenExample()
119119
yield return null;
120120

121121
assistant = new AssistantService(versionDate, authenticator);
122+
assistant.SetServiceUrl("<service-url>");
122123
assistant.ListWorkspaces(callback: OnListWorkspaces);
123124
}
124125

@@ -140,6 +141,7 @@ void TokenExample()
140141
authenticator = new BearerTokenAuthenticator("<bearer-token>");
141142

142143
assistant = new AssistantService(versionDate, authenticator);
144+
assistant.SetServiceUrl("<service-url>");
143145
assistant.ListWorkspaces(callback: OnListWorkspaces);
144146
}
145147

@@ -159,6 +161,7 @@ void UsernamePasswordExample()
159161
{
160162
Authenticator authenticator = new BasicAuthenticator("<username>", "<password>", "<url>");
161163
assistant = new AssistantService(versionDate, authenticator);
164+
assistant.SetServiceUrl("<service-url>");
162165
}
163166
```
164167

@@ -221,8 +224,10 @@ Authenticator discoveryAuthenticator;
221224
private void Example()
222225
{
223226
assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);
227+
assistant.SetServiceUrl("<service-url>");
224228

225229
discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);
230+
discovery.SetServiceUrl("<service-url>");
226231

227232
// Call with sepcific callbacks
228233
assistant.Message(
@@ -260,6 +265,7 @@ Authenticator discoveryAuthenticator;
260265
private void Example()
261266
{
262267
assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);
268+
assistant.SetServiceUrl("<service-url>");
263269

264270
// Call with generic callbacks
265271
JObject input = new JObject();
@@ -270,6 +276,9 @@ private void Example()
270276
input: input
271277
);
272278

279+
discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);
280+
discovery.SetServiceUrl("<service-url>");
281+
273282
discovery.ListEnvironments(
274283
callback: OnSuccess
275284
);
@@ -303,6 +312,7 @@ private void Example()
303312
sort: "-name",
304313
includeAudit: true
305314
);
315+
assistant.SetServiceUrl("<service-url>");
306316
}
307317
```
308318

0 commit comments

Comments
 (0)