How to do a long polling client in C#?
I have a C# desktop application, and I consume a web service without problems (wsdl added by "add Service References", so I create an object and call its functions). Now, I want to use long polling techniques but I can't figure how to do this from the client's perspective. How to configure the timeout ? Should I use a thread dedicated to this ? Is there any example for a C# desktop application ? (haven't found any) Thanks, Dam's You should be able to configure the timeout on the web service object - the details will depend on exactly which class it's using, but look at WebClientProtocol