Example #1
0
 /// <summary>
 /// Mappings the task asssembly.
 /// </summary>
 /// <param name="paraNode">The para node.</param>
 /// <returns></returns>
 public static TaskAssembly MappingTaskAsssembly(XmlElement paraNode)
 {
     TaskAssembly entity = new TaskAssembly();
     entity.AppFile = paraNode.GetAttribute("dll");
     FileInfo fi = new FileInfo(entity.AppFile);
     if (fi.Extension.ToLower() == ".dll")
     {
         entity.AssemblyType = AssemblyType.Dll;
     }
     else
     {
         entity.AssemblyType = AssemblyType.Exe;
     }
     entity.ProtocolClass = paraNode.GetAttribute("class");
     entity.ProtocolNameSpace = paraNode.GetAttribute("namespace");
     entity.UserName = paraNode.GetAttribute("name");
     return entity;
 }
Example #2
0
 public Task(TaskEntity paraEntity, TaskAssembly paraAssembly)
 {
     _TaskEntity = paraEntity;
     _TaskAssembly = paraAssembly;
 }