mySobek Home   |   Help
Skip Navigation Links.
Expand <a href='http://sobekrepository.org/sobekcm' title='Sobek home page'>Project Home</a>Project Home
Expand <a href='http://sobekrepository.org/help' title='Online user help'>User Help</a>User Help
Expand <a href='http://sobekrepository.org/sobekcm/technical' title='Sobek home page'>Technical Help</a>Technical Help
Expand <a href='http://sobekrepository.org/software' title='Center for downloading all SobekCM-related software'>Download Center</a>Download Center
Training Videos
Collapse <a href='http://sobekrepository.org/codehelp' title='Details on each of the different classes, interfaces, properties, etc..'>Code Details</a>Code Details
MISSING BANNER
Code Details >> Core >> MicroservicesClient >> MicroservicesClientBase >> Deserialize Method >> Deserialize(T) (String, Microservice_Endpoint_Protocol_Enum, List(KeyValuePair(String, String)), String, Custom_Tracer)

MicroservicesClientBase.Deserialize(T) Method (String, Microservice_Endpoint_Protocol_Enum, List(KeyValuePair(String, String)), String, Custom_Tracer)



Deserialize an object from a remote microservice URI (Generic method)


Namespace: SobekCM.Core.MicroservicesClient
Assembly: SobekCM_Core (in SobekCM_Core.dll) Version: 4.10.0.0 (4.10.0.0)

Syntax

C#
protected T Deserialize<T>(
	string MicroserviceUri,
	Microservice_Endpoint_Protocol_Enum MicroserviceProtocol,
	List<KeyValuePair<string, string>> PostData,
	string VerbMethod,
	Custom_Tracer Tracer
)

Parameters

MicroserviceUri
Type: System..::..String
URI for the remote microservice to call
MicroserviceProtocol
Type: SobekCM.Core.MicroservicesClient..::..Microservice_Endpoint_Protocol_Enum
Protocol to use for the deserialization ( i.e., JSON, Protocol buffer, etc.. )
PostData
Type: System.Collections.Generic..::..List<(Of <(<'KeyValuePair<(Of <(<'String, String>)>)>>)>)>
Data that should be posted to the microservice endpoint for this request
VerbMethod
Type: System..::..String
Tracer
Type: SobekCM.Tools..::..Custom_Tracer
Trace object keeps a list of each method executed and important milestones in rendering

Type Parameters

T
Type of object to deserialize from the URI response

Return Value

Type: T
An object of the type requested, from the serializing effort

Remarks

This only works for simple GET requests at the moment, as no object is POSTed to the remote microservice URL

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )