开发者

How to create and run custom tasks in Telligent 5.5

开发者 https://www.devze.com 2023-01-23 21:52 出处:网络
Does anyone know any resou开发者_如何学Crces regarding to the creation of a custom scheduled task under Telligent 5.5 ?

Does anyone know any resou开发者_如何学Crces regarding to the creation of a custom scheduled task under Telligent 5.5 ?

From what I read, all I need to do is the following:

1.Create a type that implements the ITask2 interface

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.Add the task description in the communityserver.config

  <Thread minutes="1">
    <task name="ReminderTask" type="Project.ScheduledTasks.ReminderTask, Project.ScheduledTasks" enabled="true" enableShutDown="false"></task>
  </Thread>

Do I need to do anything else ?

Please help :).


Yes, that is all that you should need to do. Are you having issues?

0

精彩评论

暂无评论...
验证码 换一张
取 消