Delegate MethodResponseCallback
- Namespace
- nanoFramework.Azure.Devices.Client
- Assembly
- nanoFramework.Azure.Devices.Client.dll
Method call back delegate that sets the status code of the response.
public delegate MethodResponse MethodResponseCallback(int rid, string payload)
Parameters
Returns
- MethodResponse
The response with the status code and payload to return to the caller.
- Extension Methods
Constructors
MethodResponseCallback(object, IntPtr)
public MethodResponseCallback(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(int, string, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(int rid, string payload, AsyncCallback callback, object @object)
Parameters
ridintpayloadstringcallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual MethodResponse EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(int, string)
public virtual MethodResponse Invoke(int rid, string payload)