简体   繁体   中英

C# MVC run scheduled method?

i was requested to write a 'syncing' function, i think it means updating the target object every once in a while? so i am wondering what is in C# MVC for running a scheduled method? Thanks a lot.

Please check the following tutorial for SignalR : http://www.asp.net/signalr/overview/getting-started/tutorial-server-broadcast-with-signalr

I think this is what you need to implement

I have no idea if SingalR is the correct answer (per dlght's answer - you don't give us much to go on), but the first thing that comes to mind for scheduled tasks for me is a console/service application that's driven from the windows task scheduler on the server.

Both approaches are very different and are used in very different contexts. Without some more context in what you actually need, you're not likely to get detailed answers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM