TheREST..::..GetRESTAsync Method (TheRequestData, Action<(Of <(<'TheRequestData>)>)>, Action<(Of <(<'TheRequestData>)>)>)
Requests data from a REST service asynchronously
Namespace:
nsCDEngine.CommunicationAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public static void GetRESTAsync( TheRequestData pData, Action<TheRequestData> tCallback, Action<TheRequestData> pErrorCallback )
Public Shared Sub GetRESTAsync ( _ pData As TheRequestData, _ tCallback As Action(Of TheRequestData), _ pErrorCallback As Action(Of TheRequestData) _ )
public: static void GetRESTAsync( TheRequestData^ pData, Action<TheRequestData^>^ tCallback, Action<TheRequestData^>^ pErrorCallback )
Parameters
- pData
- Type: nsCDEngine.ViewModels..::..TheRequestData
data defining the request - most important is the RequestUri
- tCallback
- Type: Action<(Of <(<'TheRequestData>)>)>
Callback with the sucessfully returned REST Data (Response)
- pErrorCallback
- Type: Action<(Of <(<'TheRequestData>)>)>
Error callback in case something went wrong during the call