0

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>

他に何かする必要がありますか?

助けてください :)。

4

1 に答える 1

0

はい、それはあなたがする必要があるすべてです。問題がありますか?

于 2010-11-05T21:44:12.670 に答える