What steps will reproduce the problem? 1. Sendig a message for the first time after updating the webservice 2. Sending a message when no messega has been sent for about 3-5 hours 3.
What is the expected output? What do you see instead? No messgae gets sent, no event from the get fired for exemple: private void service_Connecting(object sender)
What version of the product are you using? On what operating system? 1.0.3.0, windows server 2008, .net 3.5, WCF webservice
Please provide any additional information below.
Comment #1
Posted on Apr 28, 2010 by Happy LionIssue 28 has been merged into this issue.
Comment #2
Posted on May 8, 2010 by Swift KangarooFirst a big thank you to the author of the apns-sharp for the great work on the whole library. It saves me lots of time in learning and coding!
Well, I had the same problem too. The trouble maker is in class NotificationConnection.cs at method Close(). The worker thread is actually sleeping for 500 instead 100 as stated in the remarks of this method. But Close() only waits for 250. Bring those values in harmony and it works just fine. The reason why it works as console application and not as webservice, is simply the fact, that the race conditions are in favour of the console application.
Hope that helps. Cheers Thomas
Comment #3
Posted on May 18, 2010 by Swift MonkeyA very big thanks for the help, now it works perfectly!!
Comment #4
Posted on May 19, 2010 by Happy Lion(No comment was entered for this change.)
Status: Fixed
Labels:
Type-Defect
Priority-Medium