Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Need a code sample where User through web app is sending information to the LMS server.In LMS server,we can have HttpListener which responds to Data.and revert result back to Web app.
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jan-13 11:51am    
Well, just think about it...
—SA

1 solution

Hardly. The problem with a Web application is that it is fully works on HTTP requests from the client sides. If you try to listen, how it could be responsive to the request? If you use a separate thread (which is always done for listening), think about life time of the application code. It is fully executed between each HTTP request and HTTP response. In other words, a Web application model is not suitable for such things.

I would advise to consider creating a Web service, which has a very different life cycle. With a service, you can listen, of course.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900