tag:blogger.com,1999:blog-1528805174514452404.post5311461280103090556..comments2024-03-27T17:10:25.297-04:00Comments on Allen Conway: Running a Periodic Process in .NET using a Windows ServiceAllen Conwayhttp://www.blogger.com/profile/07010967958393033081noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-1528805174514452404.post-88112066064089563372019-03-18T12:39:30.729-04:002019-03-18T12:39:30.729-04:00the link to the blog doens't exit. where else ...the link to the blog doens't exit. where else can I find it?rosahttps://www.blogger.com/profile/06030413625616631061noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-67057660401264651272019-03-18T12:37:03.796-04:002019-03-18T12:37:03.796-04:00Thank you. It really helped me!!Thank you. It really helped me!!rosahttps://www.blogger.com/profile/06030413625616631061noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-69627490376048927332018-08-26T02:35:59.144-04:002018-08-26T02:35:59.144-04:00good Onegood OneAnonymoushttps://www.blogger.com/profile/06431526641880367527noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-24128671746930441332017-05-17T15:03:26.228-04:002017-05-17T15:03:26.228-04:00Hi Allen,
I don't know if my question fits int...Hi Allen,<br />I don't know if my question fits into here but I have a similar issue to handle. <br />I am working on Asp.net application with database sqlserver. I have a long running task which takes 30 minutes processing time in which scenario user cannot wait. I want to complete this long running task totally offline using window service which would trigger when user put any request. My issues are: Is this the good practice? 100 of users can issue request at same time so how to handle this via window service?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-89845233142308094322015-01-09T08:16:55.244-05:002015-01-09T08:16:55.244-05:00Thanks your post
http://www.baithuocquy.com/Thanks your post<br /><br />http://www.baithuocquy.com/Bài Thuốc Quýhttps://www.blogger.com/profile/15129201267716225392noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-41093636557803957442013-07-16T11:53:41.309-04:002013-07-16T11:53:41.309-04:00this post really helped me. thanks for taking the ...this post really helped me. thanks for taking the time to write.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-41906167885338079672013-03-19T05:31:07.649-04:002013-03-19T05:31:07.649-04:00Thanks for your comment. It's quite useful.Thanks for your comment. It's quite useful.Petehttps://www.blogger.com/profile/16470704013824915202noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-37908007493401604512013-03-18T13:29:44.684-04:002013-03-18T13:29:44.684-04:00@Pete - you still could use this method if you lik...@Pete - you still could use this method if you like or are familiar with it. In that case what I would do is have the elapsed time set to say every day and then check against, current date, day of week, date in database, etc. for equality and then run the process.<br /><br />It's a bit brute force that way though and I only mention it if you want to use this method.<br /><br />An alternative is to create a console app in .NET (instead of a Windows Service) that produces a .exe and use Windows Task Scheduler to set up the exact date and time for the .exe to be ran. In either case you could refactor out 'core' logic into a remote WCF or other service that gets called by the Win service or console app.<br /><br />The last method might be to use SQL CLR code and a SQL job to kick off the process. I'm not a big fan of SQL CLR code as it is difficult to debug and test and not a lot of fun to work with. I think it was intended as a tool for offloading small pieces of logic TSQL couldn't handle (or handle well), but often it's abused and huge amounts of code are written.<br /><br />So there you have a few ways this could be accomplished on a larger interval.Allen Conwayhttps://www.blogger.com/profile/07010967958393033081noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-87428324209806482422013-03-18T06:50:05.554-04:002013-03-18T06:50:05.554-04:00Hi Allen,
Great post and reference. Wonder how yo...Hi Allen,<br /><br />Great post and reference. Wonder how you think of a scheduled task that needs to be called once a week or biweekly? Do you still recommend using Windows Service? If yes, why? Thanks.<br /><br /><br />PetePetehttps://www.blogger.com/profile/16470704013824915202noreply@blogger.com