Table of Contents

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

rid int

The request ID.

payload string

The payload.

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

object object
method IntPtr

Methods

BeginInvoke(int, string, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(int rid, string payload, AsyncCallback callback, object @object)

Parameters

rid int
payload string
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual MethodResponse EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

MethodResponse

Invoke(int, string)

public virtual MethodResponse Invoke(int rid, string payload)

Parameters

rid int
payload string

Returns

MethodResponse