Table of Contents

Delegate MethodCallback

Namespace
nanoFramework.Azure.Devices.Client
Assembly
nanoFramework.Azure.Devices.Client.dll

Method call back delegate.

public delegate string MethodCallback(int rid, string payload)

Parameters

rid int

The request ID.

payload string

The payload.

Returns

string
Extension Methods

Constructors

MethodCallback(object, IntPtr)

public MethodCallback(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 string EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

string

Invoke(int, string)

public virtual string Invoke(int rid, string payload)

Parameters

rid int
payload string

Returns

string