Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Looking for information regarding async method usage
Avatar
blockyear #1
Member since Jul 2015 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: IqFilter.SendIqAsync
I am wondering about the use of SendIqAsync,

I have the following line of code:

            Iq response = await _xmppClient.IqFilter.SendIqAsync(requestIq);

Which I would expect to await for the returned Iq packet sent by the target listener in response to the requestIq that I am sending out. Instead, I appear to get the requestIq back immediately. The Iq is received by the target... but later. It is not used in the tutorial. Searched the forums but see no mention of this particular method. Am I not understanding how to use it?  Is there any documentation anywhere to describe its use?

    - Brian -
Avatar
blockyear #2
Member since Jul 2015 · 2 posts
Group memberships: Members
Show profile · Link to this post
Ah. Now I see it. I am actually getting an error back in response to my send. Now to figure out why the error.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: