C-DEngine 5.105

TheREST..::..GetRESTAsync Method (Uri, Int32, String, String, String, Action<(Of <(<'TheRequestData>)>)>, Object, cdeConcurrentDictionary<(Of <(<'String, String>)>)>)

Issues a REST GET call to a given URI

Namespace:  nsCDEngine.Communication
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static void GetRESTAsync(
	Uri pUri,
	int tTimeOut,
	string UID,
	string PWD,
	string Domain,
	Action<TheRequestData> tCallback,
	Object pCookie,
	cdeConcurrentDictionary<string, string> pCookies
)
Public Shared Sub GetRESTAsync ( _
	pUri As Uri, _
	tTimeOut As Integer, _
	UID As String, _
	PWD As String, _
	Domain As String, _
	tCallback As Action(Of TheRequestData), _
	pCookie As Object, _
	pCookies As cdeConcurrentDictionary(Of String, String) _
)
public:
static void GetRESTAsync(
	Uri^ pUri, 
	int^ tTimeOut, 
	String^ UID, 
	String^ PWD, 
	String^ Domain, 
	Action<TheRequestData^>^ tCallback, 
	Object^ pCookie, 
	cdeConcurrentDictionary<String^, String^>^ pCookies
)

Parameters

pUri
Type: Uri
Target URI for the REST call
tTimeOut
Type: Int32
Timeout of the call.If no return was received by this time (in seconds) the call will fail
UID
Type: String
Username for calls with authentication
PWD
Type: String
Password for calls with authentication
Domain
Type: String
Domain if required for cookies
tCallback
Type: Action<(Of <(<'TheRequestData>)>)>
Callback when the REST call is finished
pCookie
Type: Object
Cookie to be handed back with the callback
pCookies
Type: nsCDEngine.ViewModels..::..cdeConcurrentDictionary<(Of <(<'String, String>)>)>
Cookies to send to the REST server