public override eExNLML.IO.NameValueItem[] GetConfiguration(eExNetworkLibrary.TrafficModifiers.StreamModification.HTTP.HTTPStreamModifierCondition htCondition)
        {
            List <NameValueItem> lNvi        = new List <NameValueItem>();
            HeaderCondition      hcCondition = (HeaderCondition)htCondition;

            lNvi.AddRange(ConfigurationParser.ConvertToNameValueItems("header", hcCondition.Header));
            lNvi.AddRange(ConfigurationParser.ConvertToNameValueItems("pattern", hcCondition.Pattern));
            lNvi.AddRange(ConfigurationParser.ConvertToNameValueItems("evaluateRequestForResponse", hcCondition.EvaluateRequestForResponse));
            return(lNvi.ToArray());
        }
Exemple #2
0
 public override eExNLML.IO.NameValueItem[] GetConfiguration(eExNetworkLibrary.TrafficModifiers.StreamModification.HTTP.HTTPStreamModifierAction htCondition)
 {
     ImageFlipper imgFlip = (ImageFlipper)htCondition;
     return new NameValueItem[] { ConfigurationParser.ConvertToNameValueItems("imageOperation", (int)imgFlip.RotateFlipType)[0] };
 }