@@ -116,19 +116,18 @@ public Consumer(string applicationKey, string instanceId = null, string userToke
116116 /// <param name="zone">Zone associated with a request.</param>
117117 /// <param name="context">Zone context.</param>
118118 /// <returns>String of Matrix Parameters.</returns>
119- [ Obsolete ( "This method is obsolete; HttpUtils.MatrixParameters instead" ) ]
120119 private string MatrixParameters ( string zone = null , string context = null )
121120 {
122121 string matrixParameters = "" ;
123122
124123 if ( ! string . IsNullOrWhiteSpace ( zone ) )
125124 {
126- matrixParameters += ";zone =" + zone . Trim ( ) ;
125+ matrixParameters += ";zoneId =" + zone . Trim ( ) ;
127126 }
128127
129128 if ( ! string . IsNullOrWhiteSpace ( context ) )
130129 {
131- matrixParameters += ";context =" + context . Trim ( ) ;
130+ matrixParameters += ";contextId =" + context . Trim ( ) ;
132131 }
133132
134133 return matrixParameters ;
@@ -193,7 +192,7 @@ public string GetChangesSinceMarker(string zone = null, string context = null)
193192 throw new InvalidOperationException ( "Consumer has not registered." ) ;
194193 }
195194
196- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
195+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
197196 WebHeaderCollection responseHeaders = HttpUtils . HeadRequest ( url , RegistrationService . AuthorisationToken ) ;
198197
199198 return responseHeaders [ HttpUtils . RequestHeader . changesSinceMarker . ToDescription ( ) ] ;
@@ -210,7 +209,7 @@ public virtual TSingle Create(TSingle obj, string zone = null, string context =
210209 throw new InvalidOperationException ( "Consumer has not registered." ) ;
211210 }
212211
213- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + TypeName + HttpUtils . MatrixParameters ( zone , context ) ;
212+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + TypeName + MatrixParameters ( zone , context ) ;
214213 string body = SerialiseSingle ( obj ) ;
215214 string xml = HttpUtils . PostRequest ( url , RegistrationService . AuthorisationToken , body ) ;
216215 if ( log . IsDebugEnabled ) log . Debug ( "XML from POST request ..." ) ;
@@ -230,7 +229,7 @@ public virtual MultipleCreateResponse Create(TMultiple obj, string zone = null,
230229 throw new InvalidOperationException ( "Consumer has not registered." ) ;
231230 }
232231
233- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
232+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
234233 string body = SerialiseMultiple ( obj ) ;
235234 string xml = HttpUtils . PostRequest ( url , RegistrationService . AuthorisationToken , body ) ;
236235 if ( log . IsDebugEnabled ) log . Debug ( "XML from POST request ..." ) ;
@@ -256,7 +255,7 @@ public virtual TSingle Query(TPrimaryKey refId, string zone = null, string conte
256255
257256 try
258257 {
259- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + HttpUtils . MatrixParameters ( zone , context ) ;
258+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + MatrixParameters ( zone , context ) ;
260259 string xml = HttpUtils . GetRequest ( url , RegistrationService . AuthorisationToken ) ;
261260 if ( log . IsDebugEnabled ) log . Debug ( "XML from GET request ..." ) ;
262261 if ( log . IsDebugEnabled ) log . Debug ( xml ) ;
@@ -300,7 +299,7 @@ public virtual TMultiple Query(uint? navigationPage = null, uint? navigationPage
300299 throw new InvalidOperationException ( "Consumer has not registered." ) ;
301300 }
302301
303- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
302+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
304303 string xml ;
305304
306305 if ( navigationPage . HasValue && navigationPageSize . HasValue )
@@ -326,7 +325,7 @@ public virtual TMultiple QueryByExample(TSingle obj, uint? navigationPage = null
326325 throw new InvalidOperationException ( "Consumer has not registered." ) ;
327326 }
328327
329- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
328+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
330329 string body = SerialiseSingle ( obj ) ;
331330 // TODO: Update PostRequest to accept paging parameters.
332331 string xml = HttpUtils . PostRequest ( url , RegistrationService . AuthorisationToken , body , "GET" ) ;
@@ -359,7 +358,7 @@ public virtual TMultiple QueryByServicePath(IEnumerable<EqualCondition> conditio
359358
360359 }
361360
362- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + servicePath + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
361+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + servicePath + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
363362 if ( log . IsDebugEnabled ) log . Debug ( "Service Path URL is " + url ) ;
364363 string xml ;
365364
@@ -387,7 +386,7 @@ public TMultiple QueryChangesSince(string changesSinceMarker, out string nextCha
387386 }
388387
389388 string changesSinceParameter = ( changesSinceMarker == null ? string . Empty : "?changesSinceMarker=" + changesSinceMarker ) ;
390- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) + changesSinceParameter ;
389+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) + changesSinceParameter ;
391390 WebHeaderCollection responseHeaders ;
392391 string xml ;
393392
@@ -416,7 +415,7 @@ public virtual void Update(TSingle obj, string zone = null, string context = nul
416415 throw new InvalidOperationException ( "Consumer has not registered." ) ;
417416 }
418417
419- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + obj . RefId + HttpUtils . MatrixParameters ( zone , context ) ;
418+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + obj . RefId + MatrixParameters ( zone , context ) ;
420419 string body = SerialiseSingle ( obj ) ;
421420 string xml = HttpUtils . PutRequest ( url , RegistrationService . AuthorisationToken , body ) ;
422421 if ( log . IsDebugEnabled ) log . Debug ( "XML from PUT request ..." ) ;
@@ -434,7 +433,7 @@ public virtual MultipleUpdateResponse Update(TMultiple obj, string zone = null,
434433 throw new InvalidOperationException ( "Consumer has not registered." ) ;
435434 }
436435
437- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
436+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
438437 string body = SerialiseMultiple ( obj ) ;
439438 string xml = HttpUtils . PutRequest ( url , RegistrationService . AuthorisationToken , body ) ;
440439 if ( log . IsDebugEnabled ) log . Debug ( "XML from PUT request ..." ) ;
@@ -456,7 +455,7 @@ public virtual void Delete(TPrimaryKey refId, string zone = null, string context
456455 throw new InvalidOperationException ( "Consumer has not registered." ) ;
457456 }
458457
459- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + HttpUtils . MatrixParameters ( zone , context ) ;
458+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + MatrixParameters ( zone , context ) ;
460459 string xml = HttpUtils . DeleteRequest ( url , RegistrationService . AuthorisationToken ) ;
461460 if ( log . IsDebugEnabled ) log . Debug ( "XML from DELETE request ..." ) ;
462461 if ( log . IsDebugEnabled ) log . Debug ( xml ) ;
@@ -482,7 +481,7 @@ public virtual MultipleDeleteResponse Delete(IEnumerable<TPrimaryKey> refIds, st
482481 }
483482
484483 deleteRequestType request = new deleteRequestType { deletes = deleteIds . ToArray ( ) } ;
485- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
484+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
486485 string body = SerialiserFactory . GetXmlSerialiser < deleteRequestType > ( ) . Serialise ( request ) ;
487486 string xml = HttpUtils . PutRequest ( url , RegistrationService . AuthorisationToken , body , "DELETE" ) ;
488487 if ( log . IsDebugEnabled ) log . Debug ( "XML from PUT (DELETE) request ..." ) ;
0 commit comments