Click here to Skip to main content
15,915,328 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

C#
I have to perform a task in web application hosted on a local server. Web application have a number of jobs coming on a daily basis and on those job numbers of users working at a same time and if any user accepts any job then other user can not accept that job. Here I need to perform a task if any user pick job id 1 then all other user web page auto refresh and job 1 will move to another queue. We are using a status base job process if any user accepts job then status will change.


What I have tried:

Yet not try, don't know how to start
Posted
Updated 20-Jun-16 7:55am
v3
Comments
F-ES Sitecore 20-Jun-16 11:20am    
http is a request\response technology, ie your browser (or server code) requests something from WCF and gets a response. You can't do things the other way, you can't force a response to the client without a request, so your web page will either need to poll a web service periodically to see if it needs to refresh, or you can use a technology like SignalR which is good for these kinds of things.
Sergey Alexandrovich Kryukov 20-Jun-16 13:12pm    
Basically, yes, but there is such thing as server push, so what you say is not fully true. The question is very unclear though.
See also Solution 1. (Not really the solution, rather some food for thought.)
—SA

1 solution

The question is very vague, so I cannot answer exactly to the point.

Instead, I can give you some links which should provide useful hints:
Push technology — Wikipedia, the free encyclopedia,
Application 'dashboard' for website accounts,
Duplex Services (careful: not really applicable to ASP.NET),
WebSockets — Web APIs[^],
SignalR — Wikipedia, the free encyclopedia,
SignalR | The ASP.NET Site[^].

Please just read this matter and think. One possibility is: perhaps it can help you to formulate more clear and productive questions related to your work. See also my comment in discussions to the question.

—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