Beispiel #1
0
 public override List <SkinnyItem> RunQuery(Sitecore.Search.QueryBase query, bool showAllVersions)
 {
     using (var scope = QueryTraceHelper.GetQueryTraceScope(query))
     {
         return(base.RunQuery(query, showAllVersions));
     }
 }
Beispiel #2
0
        public static QueryTraceScope GetQueryTraceScope(Sitecore.Search.QueryBase query)
        {
            var queryContext = new QueryTraceScopeContext(query);

            return(GetQueryTraceScope(queryContext));
        }
 public QueryTraceScopeContext(Sitecore.Search.QueryBase query)
 {
     Query = query.ToString();
 }