public static LookupInOptions Timeout(this LookupInOptions opts, TimeSpan?timeout)
        {
            if (timeout.HasValue)
            {
                return(opts.Timeout(timeout.Value));
            }

            return(opts);
        }
Exemple #2
0
        public static LookupInOptions Defaults(this LookupInOptions opts, TimeSpan?timeout)
        {
            opts = opts.RetryStrategy(RetryStrategy);
            if (timeout.HasValue)
            {
                opts = opts.Timeout(timeout.Value);
            }

            return(opts);
        }