public static MutateInOptions Timeout(this MutateInOptions opts, TimeSpan?timeout) { if (timeout.HasValue) { return(opts.Timeout(timeout.Value)); } return(opts); }
public static MutateInOptions Defaults(this MutateInOptions opts, DurabilityLevel?durability, TimeSpan?timeout) { opts = new MutateInOptions().RetryStrategy(RetryStrategy); if (durability.HasValue) { opts = opts.Durability(durability.Value); } if (timeout.HasValue) { opts = opts.Timeout(timeout.Value); } return(opts); }