@@ -119,6 +119,7 @@ IEnumerator TokenExample()
119
119
yield return null ;
120
120
121
121
assistant = new AssistantService (versionDate , authenticator );
122
+ assistant .SetServiceUrl (" <service-url>" );
122
123
assistant .ListWorkspaces (callback : OnListWorkspaces );
123
124
}
124
125
@@ -140,6 +141,7 @@ void TokenExample()
140
141
authenticator = new BearerTokenAuthenticator (" <bearer-token>" );
141
142
142
143
assistant = new AssistantService (versionDate , authenticator );
144
+ assistant .SetServiceUrl (" <service-url>" );
143
145
assistant .ListWorkspaces (callback : OnListWorkspaces );
144
146
}
145
147
@@ -159,6 +161,7 @@ void UsernamePasswordExample()
159
161
{
160
162
Authenticator authenticator = new BasicAuthenticator (" <username>" , " <password>" , " <url>" );
161
163
assistant = new AssistantService (versionDate , authenticator );
164
+ assistant .SetServiceUrl (" <service-url>" );
162
165
}
163
166
```
164
167
@@ -221,8 +224,10 @@ Authenticator discoveryAuthenticator;
221
224
private void Example ()
222
225
{
223
226
assistant = new AssistantService (assistantVersionDate , assistantAuthenticator );
227
+ assistant .SetServiceUrl (" <service-url>" );
224
228
225
229
discovery = new DiscoveryService (discoveryVersionDate , discoveryAuthenticator );
230
+ discovery .SetServiceUrl (" <service-url>" );
226
231
227
232
// Call with sepcific callbacks
228
233
assistant .Message (
@@ -260,6 +265,7 @@ Authenticator discoveryAuthenticator;
260
265
private void Example ()
261
266
{
262
267
assistant = new AssistantService (assistantVersionDate , assistantAuthenticator );
268
+ assistant .SetServiceUrl (" <service-url>" );
263
269
264
270
// Call with generic callbacks
265
271
JObject input = new JObject ();
@@ -270,6 +276,9 @@ private void Example()
270
276
input : input
271
277
);
272
278
279
+ discovery = new DiscoveryService (discoveryVersionDate , discoveryAuthenticator );
280
+ discovery .SetServiceUrl (" <service-url>" );
281
+
273
282
discovery .ListEnvironments (
274
283
callback : OnSuccess
275
284
);
@@ -303,6 +312,7 @@ private void Example()
303
312
sort : " -name" ,
304
313
includeAudit : true
305
314
);
315
+ assistant .SetServiceUrl (" <service-url>" );
306
316
}
307
317
```
308
318
0 commit comments