TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

WhatsUpService does not work well #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey guys.

At first: Good work you did.

But I have a problem with the WhatsUpService:

I use the following code:

// Initialize:
messenger.Nameserver.WhatsUpService.GetWhatsUpCompleted += new 
EventHandler<GetWhatsUpCompletedEventArgs>(WhatsUpService_GetWhatsUpCompleted);
                messenger.Nameserver.WhatsUpService.ServiceOperationFailed += new EventHandler<ServiceOperationFailedEventArgs>(WhatsUpService_ServiceOperationFailed);

void ContactService_SynchronizationCompleted(object sender, EventArgs e)
        {            
            messenger.Nameserver.WhatsUpService.GetWhatsUp(200);

        }

 void WhatsUpService_GetWhatsUpCompleted(object sender, GetWhatsUpCompletedEventArgs e)
        {
            //System.Windows.Forms.MessageBox.Show(e.Response.FeedUrl);
            _news = new MSNPFeatures.WhatsupMessages(e.Response.FeedUrl);

            // Call event.
            WhatsUpChanged();
        }

But I don't get the messenger to call the event method. Why?

Original issue reported on code.google.com by worldrac...@googlemail.com on 18 Jul 2010 at 12:02

GoogleCodeExporter commented 9 years ago
Hi,

Do you mean the WhatsUpService_GetWhatsUpCompleted function never called? What 
version of MSNPSharp are you using?

Original comment by freezing...@gmail.com on 18 Jul 2010 at 12:32

GoogleCodeExporter commented 9 years ago
I suggest you test this account with the example client, and see whether the 
event will be triggered or not.

Original comment by freezing...@gmail.com on 18 Jul 2010 at 12:33

GoogleCodeExporter commented 9 years ago
When I test my account with the example client, I get "You can not login as 
offline". When I test it with WLM, it works fine.

WhatsUpService_GetWhatsUpCompleted function is never called. The 
SynchronizationComplete is called every time signing in.

I actually need the FeedUrl only. Is there any other way to generate that thing?

Original comment by worldrac...@googlemail.com on 18 Jul 2010 at 1:04

GoogleCodeExporter commented 9 years ago
Ah, forgot to say: I'm using MSNPSharp 3.0.2 release

Original comment by worldrac...@googlemail.com on 18 Jul 2010 at 1:04

GoogleCodeExporter commented 9 years ago
Hi,

Could you please give us your account for a test, because I think that problem 
sounds strange.

Original comment by freezing...@gmail.com on 19 Jul 2010 at 9:13

GoogleCodeExporter commented 9 years ago
By the way, does the ServiceOperationFailed ever triggered?

Original comment by freezing...@gmail.com on 19 Jul 2010 at 11:26

GoogleCodeExporter commented 9 years ago
The WhatsUpService does have FeedURL property, but it will remains to 
string.Empty unless the service successfully returned.

Original comment by freezing...@gmail.com on 19 Jul 2010 at 11:32

GoogleCodeExporter commented 9 years ago
Thanks for your answers.

@Comment 5: Yeah I will give you the account: dfytest@live.de password: 122031mK

@Comment 6: No, the ServiceOperation failed does not get triggered in this case.

@Comment 7: Yeah, but up to this point, the property is useless for me, so I am 
depending on the WhatsUpCompleted event.

Original comment by worldrac...@googlemail.com on 19 Jul 2010 at 1:10

GoogleCodeExporter commented 9 years ago
But I test your account with example client, everything works well. See the 
screenshot attached, please.

Original comment by freezing...@gmail.com on 20 Jul 2010 at 7:08

Attachments:

GoogleCodeExporter commented 9 years ago
My testing environment is Win7 with vs2005 installed.

Original comment by freezing...@gmail.com on 20 Jul 2010 at 7:13

GoogleCodeExporter commented 9 years ago
Hmmmm. Can you tell me what I exactly have to do to get Whatsup working?!

Original comment by worldrac...@googlemail.com on 21 Jul 2010 at 3:39

GoogleCodeExporter commented 9 years ago
Check the defference between your code and the code of example client.

Original comment by freezing...@gmail.com on 21 Jul 2010 at 6:26