datetime - How to set objects to begin/expire at date/time in MVC 5 -
as part of requirements project, need set objects begin/expire. has done without user going page, need set notifications these events. meaning has run without user interaction. have date/time start/end property each of objects. best way of doing this?
publishing/expiring not function of watching date occur , doing something; simply take dates business relationship when querying objects database. example, if dealing blog, in index view, bring in posts "published" based on appropriate date column.
now far notification goes, that's case you'll need process checks date values on regular basis. can't (or @ to the lowest degree shouldn't) web application, since web servers not designed handle long running tasks.
revalee project might want check out. allows schedule tasks run in external process web application.
datetime asp.net-mvc-5 content-expiration
No comments:
Post a Comment