@@ -101,7 +101,7 @@ public Consumer(Environment environment)
101101 /// <param name="applicationKey">Application key.</param>
102102 /// <param name="instanceId">Instance ID.</param>
103103 /// <param name="userToken">User token.</param>
104- /// <param name="solutionId">Olution ID.</param>
104+ /// <param name="solutionId">Solution ID.</param>
105105 public Consumer ( string applicationKey , string instanceId = null , string userToken = null , string solutionId = null )
106106 {
107107 Environment environment = new Environment ( applicationKey , instanceId , userToken , solutionId ) ;
@@ -115,6 +115,7 @@ public Consumer(string applicationKey, string instanceId = null, string userToke
115115 /// <param name="zone">Zone associated with a request.</param>
116116 /// <param name="context">Zone context.</param>
117117 /// <returns>String of Matrix Parameters.</returns>
118+ [ Obsolete ( "This method is obsolete; HttpUtils.MatrixParameters instead" ) ]
118119 private string MatrixParameters ( string zone = null , string context = null )
119120 {
120121 string matrixParameters = "" ;
@@ -173,7 +174,7 @@ public void Register()
173174 }
174175
175176 /// <summary>
176- /// <see cref="IConsumer{TSingle,TMultiple,TPrimaryKey}.Unregister()">Unregister</see>
177+ /// <see cref="IConsumer{TSingle,TMultiple,TPrimaryKey}.Unregister(bool? )">Unregister</see>
177178 /// </summary>
178179 public void Unregister ( bool ? deleteOnUnregister = null )
179180 {
@@ -191,7 +192,7 @@ public virtual TSingle Create(TSingle obj, string zone = null, string context =
191192 throw new InvalidOperationException ( "Consumer has not registered." ) ;
192193 }
193194
194- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + TypeName + MatrixParameters ( zone , context ) ;
195+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + TypeName + HttpUtils . MatrixParameters ( zone , context ) ;
195196 string body = SerialiseSingle ( obj ) ;
196197 string xml = HttpUtils . PostRequest ( url , RegistrationService . AuthorisationToken , body ) ;
197198 if ( log . IsDebugEnabled ) log . Debug ( "XML from POST request ..." ) ;
@@ -201,7 +202,7 @@ public virtual TSingle Create(TSingle obj, string zone = null, string context =
201202 }
202203
203204 /// <summary>
204- /// <see cref="IConsumer{TSingle,TMultiple,TPrimaryKey}.Create(TMultiple)">Create</see>
205+ /// <see cref="IConsumer{TSingle,TMultiple,TPrimaryKey}.Create(TMultiple, string, string )">Create</see>
205206 /// </summary>
206207 public virtual MultipleCreateResponse Create ( TMultiple obj , string zone = null , string context = null )
207208 {
@@ -211,7 +212,7 @@ public virtual MultipleCreateResponse Create(TMultiple obj, string zone = null,
211212 throw new InvalidOperationException ( "Consumer has not registered." ) ;
212213 }
213214
214- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
215+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
215216 string body = SerialiseMultiple ( obj ) ;
216217 string xml = HttpUtils . PostRequest ( url , RegistrationService . AuthorisationToken , body ) ;
217218 if ( log . IsDebugEnabled ) log . Debug ( "XML from POST request ..." ) ;
@@ -237,7 +238,7 @@ public virtual TSingle Query(TPrimaryKey refId, string zone = null, string conte
237238
238239 try
239240 {
240- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + MatrixParameters ( zone , context ) ;
241+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + HttpUtils . MatrixParameters ( zone , context ) ;
241242 string xml = HttpUtils . GetRequest ( url , RegistrationService . AuthorisationToken ) ;
242243 if ( log . IsDebugEnabled ) log . Debug ( "XML from GET request ..." ) ;
243244 if ( log . IsDebugEnabled ) log . Debug ( xml ) ;
@@ -281,7 +282,7 @@ public virtual TMultiple Query(uint? navigationPage = null, uint? navigationPage
281282 throw new InvalidOperationException ( "Consumer has not registered." ) ;
282283 }
283284
284- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
285+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
285286 string xml ;
286287
287288 if ( navigationPage . HasValue && navigationPageSize . HasValue )
@@ -307,7 +308,7 @@ public virtual TMultiple QueryByExample(TSingle obj, uint? navigationPage = null
307308 throw new InvalidOperationException ( "Consumer has not registered." ) ;
308309 }
309310
310- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
311+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
311312 string body = SerialiseSingle ( obj ) ;
312313 // TODO: Update PostRequest to accept paging parameters.
313314 string xml = HttpUtils . PostRequest ( url , RegistrationService . AuthorisationToken , body , "GET" ) ;
@@ -340,7 +341,7 @@ public virtual TMultiple QueryByServicePath(IEnumerable<EqualCondition> conditio
340341
341342 }
342343
343- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + servicePath + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
344+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + servicePath + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
344345 if ( log . IsDebugEnabled ) log . Debug ( "Service Path URL is " + url ) ;
345346 string xml ;
346347
@@ -367,7 +368,7 @@ public virtual void Update(TSingle obj, string zone = null, string context = nul
367368 throw new InvalidOperationException ( "Consumer has not registered." ) ;
368369 }
369370
370- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + obj . RefId + MatrixParameters ( zone , context ) ;
371+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + obj . RefId + HttpUtils . MatrixParameters ( zone , context ) ;
371372 string body = SerialiseSingle ( obj ) ;
372373 string xml = HttpUtils . PutRequest ( url , RegistrationService . AuthorisationToken , body ) ;
373374 if ( log . IsDebugEnabled ) log . Debug ( "XML from PUT request ..." ) ;
@@ -385,7 +386,7 @@ public virtual MultipleUpdateResponse Update(TMultiple obj, string zone = null,
385386 throw new InvalidOperationException ( "Consumer has not registered." ) ;
386387 }
387388
388- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
389+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
389390 string body = SerialiseMultiple ( obj ) ;
390391 string xml = HttpUtils . PutRequest ( url , RegistrationService . AuthorisationToken , body ) ;
391392 if ( log . IsDebugEnabled ) log . Debug ( "XML from PUT request ..." ) ;
@@ -407,7 +408,7 @@ public virtual void Delete(TPrimaryKey refId, string zone = null, string context
407408 throw new InvalidOperationException ( "Consumer has not registered." ) ;
408409 }
409410
410- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + MatrixParameters ( zone , context ) ;
411+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + "/" + refId + HttpUtils . MatrixParameters ( zone , context ) ;
411412 string xml = HttpUtils . DeleteRequest ( url , RegistrationService . AuthorisationToken ) ;
412413 if ( log . IsDebugEnabled ) log . Debug ( "XML from DELETE request ..." ) ;
413414 if ( log . IsDebugEnabled ) log . Debug ( xml ) ;
@@ -433,7 +434,7 @@ public virtual MultipleDeleteResponse Delete(IEnumerable<TPrimaryKey> refIds, st
433434 }
434435
435436 deleteRequestType request = new deleteRequestType { deletes = deleteIds . ToArray ( ) } ;
436- string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + MatrixParameters ( zone , context ) ;
437+ string url = EnvironmentUtils . ParseServiceUrl ( EnvironmentTemplate ) + "/" + TypeName + "s" + HttpUtils . MatrixParameters ( zone , context ) ;
437438 string body = SerialiserFactory . GetXmlSerialiser < deleteRequestType > ( ) . Serialise ( request ) ;
438439 string xml = HttpUtils . PutRequest ( url , RegistrationService . AuthorisationToken , body , "DELETE" ) ;
439440 if ( log . IsDebugEnabled ) log . Debug ( "XML from PUT (DELETE) request ..." ) ;
0 commit comments