danikf/tik4net

connection.LoadAsync<TEntity> throws

AsafMag opened this issue · 2 comments

The following code:

...
connection.LoadAsync<WirelessAccessList>(
    (item) => { },
    (ex) => { }
);
...

Throws:

interface/wireless/access-list
MESSAGE: no such command

Am I using it wrong?

Hi,
I don't understand the reason why load list (sample command returns list just once) with async method. It didn't work (LoadAsync didn't add /print suffix). This behavior has been fixed by 843b50a commit.

So - with DEV tik4net version your sample code will work correctly (but synchronous load is still recomended).

D

It would actually be great if you added a tag for the synchronous commands as well, this would make it a lot easier for me. This is the reason I was trying to use LoadAsync. Also please launch an event when an async command gets an ApiDoneSentence @danikf