예제 #1
0
        private ITrigger GetTriggerFromXml(string nativeXml)
        {
            _factory = _factory ?? new TaskServiceConvertorFactory();
            _service = _service ?? new Dev2TaskService(_factory);
            using (var task = _service.NewTask())
            {
                task.AddAction(_factory.CreateExecAction("notepad"));

                task.XmlText = nativeXml;
                return task.Triggers.FirstOrDefault();
            }
        }
예제 #2
0
        ITrigger GetTriggerFromXml(string nativeXml)
        {
            _factory = _factory ?? new TaskServiceConvertorFactory();
            _service = _service ?? new Dev2TaskService(_factory);
            using (var task = _service.NewTask())
            {
                task.AddAction(_factory.CreateExecAction("notepad"));

                task.XmlText = nativeXml;
                return(task.Triggers.FirstOrDefault());
            }
        }
예제 #3
0
 private string SetXmlFromTrigger(ITrigger value)
 {
     _factory= _factory ?? new TaskServiceConvertorFactory();
    _service= _service ?? new Dev2TaskService(_factory);
     using (var task = _service.NewTask())
     {
         task.AddAction(_factory.CreateExecAction("notepad"));
         task.AddTrigger(value);
       
         return task.XmlText;
     }
 }
예제 #4
0
        string SetXmlFromTrigger(ITrigger value)
        {
            _factory = _factory ?? new TaskServiceConvertorFactory();
            _service = _service ?? new Dev2TaskService(_factory);
            using (var task = _service.NewTask())
            {
                task.AddAction(_factory.CreateExecAction("notepad"));
                task.AddTrigger(value);

                return(task.XmlText);
            }
        }