asp.net mvc - Calling an action method on predefined time -
i have action method inside controller class , sync . user can manually call action method, clicking on button view.
but question whether can create job or bath runs on host server let each 1 hour , call action method.
currently using form authentication, , hosting asp.net mvc web application on iis 7
thanks
there few ways of doing this.
refactor code out of mvc , put inside wcf service, configure service make use of http://quarts.net/ , setup schedule run. service can hosted inside iis.
you can create windows service (nt service) makes use of quartz.net. service can installed on production server.
you can create batch file , use windows task fire off exe run job.
Comments
Post a Comment