longpooling in asp.net mvc global
npsniloo opened this issue · 5 comments
hi,
i have a bot,i am using long pooling method,i call startreceiving method in my appstart method,it is working fine but after a while like half an hour if i dont use the bot,it wont work until i refresh the application.do you know what is the problem?
Did you disable "Pool recycling"?
no,what is that.
although i think i found the problem: i have used app_start method which runs in iis for while loop and its not a good idea because iis unload project after 15 minutes so getupdates in while wont be called.I have to use a windows service or a timer i think
Please see these two links:
Quartz.NET DOC: https://www.quartz-scheduler.net/documentation/faq.html (Bottom of the page)
Resuling link (at bottom of the previous page): https://blogs.msdn.microsoft.com/vijaysk/2012/10/11/iis-8-whats-new-website-settings/
hey thanks for your solution but i have used hangfire as well ,the problem about all of these solutions is that my website is in shared host so if my site becomes inactive,it disposes jobs and i dont have access to iis so it is not working for me :(
@npsniloo this question is beyond support scope of this repository. I suggest you to join our Telegram group to discuss your matters with other library users.