Пример #1
0
        public static IDocumentQuery <T> ConditionalWaitForNonStaleResultsAsOf <T>(this IDocumentQuery <T> query, bool condition, DateTime cutOff, TimeSpan waitTimeout)
        {
            if (condition)
            {
                return(query.WaitForNonStaleResultsAsOf(cutOff, waitTimeout));
            }

            return(query);
        }