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