示例#1
0
        public bool Invoke(string[] cols)
        {
            var data  = DataListUtilBase.AdjustForEncodingIssues(cols[0]);
            var isXml = DataListUtilBase.IsXml(data, out bool isFragment);

            return(!(isXml || isFragment));
        }
示例#2
0
        private string BuildPostBody(byte[] body)
        {
            var returnedQueueMessage = Encoding.UTF8.GetString(body);
            var inputs     = _valueKeys.Select(v => (v.Name, v.Value)).ToList();
            var mappedData = _messageToInputsMapper.Map(returnedQueueMessage, inputs, returnedQueueMessage.IsJSON(),
                                                        DataListUtilBase.IsXml(returnedQueueMessage), _mapEntireMessage);

            return(mappedData);
        }
示例#3
0
 public static bool IsXml(string data, out bool isFragment) => DataListUtilBase.IsXml(data, out isFragment);
示例#4
0
        //used in the replace node method

        public static bool IsXml(string data) => DataListUtilBase.IsXml(data);