private void LoadCfgFromXml(step cfg) { //var indexHeader = strAll.IndexOf(StaticStrings.HeaderSplitor); //var bp = strAll.IndexOf(StaticStrings.BodySplitor); //var indexBody = bp == -1 ? strAll.Length : bp; header = cfg.post_header; body = cfg.post_body.Trim().Replace("\n", "").Replace("\r", ""); var parameterPlace = Utility.GetRegxMatchs(StaticStrings.ParameterSpaceRegex, header).Concat(Utility.GetRegxMatchs(StaticStrings.ParameterSpaceRegex, body)); parameters = parameterPlace.Distinct().ToArray(); }
public Page(step cfg) { }
public PostPageTemplate(step cfg) : base(cfg) { LoadCfgFromXml(cfg); }
public PostBackPageTemplate(step cfg) : base(cfg) { InputParameter = cfg.pastback; }