English 中文(简体)
• 如何使拖网机的 c网中的程序自动化?
原标题:How to automate the process in c#.net for crawler?

我正在协会设计一个网站。 我正在从事这项工作的NET和C#。

There is a table List_of_Site which contains list of sites to be crawled. And another table Site1_Links which contains crawled data such as links, contents etc.

我在C# asp.net中编篡了一个节目,在视力演播室里有一个表格Home.aspx,并有一个名称为CLAN的纽埃。 每当点击 but子时,就会从表List_of_Site上 f光这些地点,然后将其推向现有的新链接,并在上将其分别节省下来。 Site1_Links table.

但是,要做到这一点,就必须每当次点击纽顿,但我想到一些时间间隔期间能够使这一进程自动化的东西,即X

请建议一种方式?

最佳回答

你们不希望有一个伙伴关系。 NET Web application for this. 网络应用是被动要求/反应系统。 他们要等待申请,对此做出回应,并回到等待。 不适合安排背景任务。

总的来说,你有两个简单选择:

  1. A console application (run by a scheduler)
  2. a Windows Service

假释申请在历史上更容易撰写和审校。 我认为,Windows仍然有一个捆绑式的任务时间表,可以按既定时间表执行。 我通常喜欢这种做法。 然而,存在着权衡。 我不相信,除非有人拖入机器,例如。

视窗服务通常更适合这项任务,但通常更难以为平均用户撰写和维持。 然而,它的好处是,它不把“绿色窗口”utter到“绿色窗口”上来,而不需要有人拖到工作站。

问题回答

Try hooking a Timer up to your button instead. You ll probably want something to make it stop as well. Here is a good tutorial on using said timer.





相关问题
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!