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(); } }
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()); } }
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; } }
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); } }