有没有人知道在Telligent 5.5下创建自定义计划任务的相关资源?
根据我所读到的,我所需要做的是:
1.创建实现ITask2接口的类型
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telligent.Tasks;
namespace Project.ScheduledTasks
{
public class ReminderTask:ITask2
{
public void Execute()
{
string task = "Please hit the breakpoint here";
}
public void Load(System.Xml.XmlNode node)
{
throw new NotImplementedException();
}
}
}2.在communityserver.config中添加任务描述
<Thread minutes="1">
<task name="ReminderTask" type="Project.ScheduledTasks.ReminderTask, Project.ScheduledTasks" enabled="true" enableShutDown="false"></task>
</Thread>我还需要做什么吗?
请帮助:)。
发布于 2010-11-06 05:44:13
是的,这就是你需要做的所有事情。你有什么问题吗?
https://stackoverflow.com/questions/4107329
复制相似问题