public void TestReceive() { IotApi api = new IotApi() .RegisterPersistModule(new Dictionary <string, object>()) .RegisterModule(getDefaultModule(true)); api.Open(new System.Collections.Generic.Dictionary <string, object>()); var msg = api.ReceiveAsync().Result; }
public void TestReceive() { IotApi api = new IotApi() .RegisterPersist(new Dictionary <string, object>()) .RegisterModule(getDefaultModule(true)); api.Open(new System.Collections.Generic.Dictionary <string, object>()); api.ReceiveAsync( (msgs) => { }, (msgs, err) => { }).Wait(); }