protected override void LoadConfiguration(string configurationString) { BuiltInTaskConfiguration configuration = SerializationUtils.DeserializeXmlObject <BuiltInTaskConfiguration>(configurationString); View.TaskType = configuration.TaskName; View.Configuration = configuration.Parameters; }
public override string GenerateConfigurationString() { BuiltInTaskConfiguration configuration = new BuiltInTaskConfiguration { TaskName = View.TaskType, Parameters = View.Configuration }; return(SerializationUtils.XmlSerializeObject(configuration)); }
public ITask CreateTask(string taskConfiguration) { if (taskConfiguration == null) { throw new ArgumentNullException("taskConfiguration"); } BuiltInTaskConfiguration configuration = SerializationUtils.DeserializeXmlObject <BuiltInTaskConfiguration>(taskConfiguration); return(m_BuiltInTaskFactory.CreateTask(configuration)); }