【问题标题】:How to create and run custom tasks in Telligent 5.5如何在 Telligent 5.5 中创建和运行自定义任务
【发布时间】:2010-11-05 15:24:19
【问题描述】:

有人知道有关在 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>

我还需要做什么吗?

请帮忙:)。

【问题讨论】:

    标签: telligent


    【解决方案1】:

    是的,这就是您需要做的所有事情。你有问题吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-05
      • 1970-01-01
      • 2017-06-15
      • 2019-06-07
      • 2013-12-03
      • 2017-06-04
      相关资源
      最近更新 更多