@@ -322,28 +322,29 @@ public static string FixupURL(string URL)
322
322
}
323
323
324
324
/// <summary>
325
- /// Create a WSConnector for the given service and function.
325
+ /// Create a WSConnector for the given service and function.
326
326
/// </summary>
327
327
/// <param name="authenticator">The authenticator for the service.</param>
328
328
/// <param name="function">The name of the function to connect.</param>
329
329
/// <param name="args">Additional function arguments.</param>
330
+ /// <param name="serviceUrl">Service Url to connect to.</param>
330
331
/// <returns>The WSConnector object or null or error.</returns>
331
- public static WSConnector CreateConnector ( Authenticator authenticator , string function , string args , string url )
332
+ public static WSConnector CreateConnector ( Authenticator authenticator , string function , string args , string serviceUrl )
332
333
{
333
- if ( string . IsNullOrEmpty ( url ) )
334
+ if ( string . IsNullOrEmpty ( serviceUrl ) )
334
335
{
335
- throw new ArgumentNullException ( "The Url must not be empty or null." ) ;
336
+ throw new ArgumentNullException ( "The serviceUrl must not be empty or null." ) ;
336
337
}
337
338
338
- if ( Utility . HasBadFirstOrLastCharacter ( url ) )
339
+ if ( Utility . HasBadFirstOrLastCharacter ( serviceUrl ) )
339
340
{
340
- throw new ArgumentException ( "The Url property is invalid. Please remove any surrounding {{, }}, or \" characters." ) ;
341
+ throw new ArgumentException ( "The serviceUrl property is invalid. Please remove any surrounding {{, }}, or \" characters." ) ;
341
342
}
342
343
343
344
WSConnector connector = new WSConnector ( ) ;
344
345
connector . Authentication = authenticator ;
345
346
346
- connector . URL = FixupURL ( url ) + function + args ;
347
+ connector . URL = FixupURL ( serviceUrl ) + function + args ;
347
348
authenticator . Authenticate ( connector ) ;
348
349
349
350
return connector ;
0 commit comments