asp.net mvc的长时间操作 [英] asp.net mvc long operation

查看:143
本文介绍了asp.net mvc的长时间操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个电子邮件列表发送到许多电子邮件。什么是MVC的最佳解决方案,以调用长时间操作?有例子更好

i need create an email list sending to many emails. what is best solution in mvc to call long time operation? better with example

推荐答案

我建议你保存你要在一个数据库发送例如,随着收件人的邮件。然后,你可以使用一个调度程序(如 Quartz.NEt ),检查每隔一分钟(例如),如果有在邮件被发送,如果有,它会发送多达10个邮件每一次。

I would suggest that you save the messages you want to send in a DB for example, along with the recipients. Then, you can use a scheduler (like Quartz.NEt) that checks every one minute (for example) if there are emails to be sent and in case there are, it sends up to 10 mails every time.

这篇关于asp.net mvc的长时间操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆