Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

Greetings for the day!

I'm assigned to an ASP.NET MVC 4 project in which I need to method running in background that will keep checking and doing some manipulation in database.

Please suggest a way to achieve this purpose. Should I create a Windows Service or is there any way to incorporate this functionality from within the ASP.NET MVC4 project..


Thanks in Advance,
Sunny K
Posted
Comments
Mahesh Bailwal 20-May-13 2:59am    
I believe window service is designed for this kind of requirements, where as MVC application is designed for web based user interaction.
So in opinion window service is best in this case.
Sunny_Kumar_ 20-May-13 3:13am    
thanks for your opinion Mr. Baiwal. I really appreciate it.
sorawit amorn 21-May-13 17:24pm    
Yes to Mr. Bailwal. Alternatively, you can have a singleton class that run on a thread.
Sunny_Kumar_ 22-May-13 1:18am    
I appreciate your opinion Mr. Amorn. Thank You!

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