internal QueryProcessor(QueryMatcher matcher) { base.Processor = this; this.matcher = matcher; this.flags = QueryProcessingFlags.Match; this.messageAction = null; this.messageId = null; this.messageSoapUri = null; this.messageTo = null; if (matcher.SubExprVarCount > 0) { this.subExprVars = new SubExprVariable[matcher.SubExprVarCount]; } }
internal QueryProcessor(QueryMatcher matcher) : base() { this.Processor = this; this.matcher = matcher; this.flags = QueryProcessingFlags.Match; // PERF, [....], see if we can just let these to their default init this.messageAction = null; //this.messageAddress = null; //this.messageVia = null; this.messageId = null; this.messageSoapUri = null; this.messageTo = null; if (matcher.SubExprVarCount > 0) { this.subExprVars = new SubExprVariable[matcher.SubExprVarCount]; } }
public nock Query(NameValueCollection queryParameters, bool exactMatch = false) { _queryMatcher = exactMatch == true ? QueryMatcher.NameValueExact : QueryMatcher.NameValue; _query = queryParameters; return(this); }
public nock Query(Func <QueryDetails, bool> queryMatcher) { _queryMatcher = QueryMatcher.Func; _queryFunc = queryMatcher; return(this); }
public nock Query(bool result) { _queryMatcher = QueryMatcher.Bool; _queryResult = result; return(this); }