示例#1
0
 /// <summary>
 /// Initializes a new instance of the SwitchStep class
 /// </summary>
 /// <param name="attributes">Xml attributes from the BPEL file</param>
 public SwitchStep(XmlAttributeCollection attributes)
 {
     SwitchContext = new SwitchContextModel();
     // set name attribute - only one we care about for now
     foreach (XmlAttribute attrib in attributes)
     {
         if (attrib.LocalName == "name")
         {
             SwitchContext.Name = attrib.Value;
             StepId = attrib.Value;
         }
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the SwitchStep class
 /// </summary>
 /// <param name="attributes">Xml attributes from the BPEL file</param>
 public SwitchStep(XmlAttributeCollection attributes)
 {
     SwitchContext = new SwitchContextModel();
     // set name attribute - only one we care about for now
     foreach (XmlAttribute attrib in attributes)
     {
         if (attrib.LocalName == "name")
         {
             SwitchContext.Name = attrib.Value;
             StepId             = attrib.Value;
         }
     }
 }