English 中文(简体)
撰写能够申请投票的最佳方式
原标题:Best way to write a polling capable application
  • 时间:2010-08-24 03:29:15
  •  标签:
  • c#
  • asp.net

I m trying to build a basic application which will have 2 separate components which are:
1. Continually poll an external process and store the results within a DB
2. Grab the results from the DB and display it in a webpage

我期待这样做。 因此,我通常会说,是视窗服务的第一个组成部分,其次是伙伴关系。 净值为 relation光服务器。

问题在于,我想要利用网络托管来部署这一系统,而且不会让Windows服务(除非你付钱)。 因此,投票部分最好放在一个充斥的纸面上,或者在一个单像纸面页内,在我投票时,可能制造一个 sp子的工人。

Any opinions/input appreciated.
Thanks :)

最佳回答

考虑这一处理。 ASP.NET的简便背景任务。 评论中的一些建议、经验教训等。 我认为,我记得一个播客,该站点的规模迫使将这一代码移至Windows Service。 你们可能/没有同样的规模需求。

问题回答

你可以采用静态方法,在协会下建立一个投票站。 NET,即是。

缩略语 ASP. 净背景任务来自在论坛期间提出的问题。 SO实际上使用类似于这一方法的物品来发放通行证。

我亲自利用这来做你所说的话。

外部进程是什么?

如果你对此有任何控制,你能否在那里服务?

伙伴关系基本上是针对要求设计的,而不是针对长期运行的过程,你可能得到某种工作,但从来不会像为这项工作设计的那种那样强大。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签