private static string[] GetAnyBase(FluentQuery response, string[] textType) { response.QueryType = QueryType.Any; response.AppendToScript($"Any [{Or(textType)}]"); return(response.ExecuteQuery().Select(x => x.Value).ToArray()); }
/// <summary> /// Executes a multiple capture query /// </summary> /// <param name="fluentQuery">A FluentQuery object containing the script built so far.</param> /// <returns>The data specified for capture in the query in a dictionary.</returns> public static Dictionary <string, string> Capture(this FluentQuery fluentQuery, Func <FluentQuery, FluentQuery> query) { fluentQuery = query(fluentQuery); if (fluentQuery.QueryType != QueryType.MultiCapture) { throw new FluentQueryException("A multi capture query needs to have multiple captures specified"); } return(fluentQuery.ExecuteQuery()); }
private static string ExecuteSingleCapture(this FluentQuery fluentQuery) { return(fluentQuery.ExecuteQuery().FirstOrDefault().Value); }