public static MutateInOptions Durability(this MutateInOptions opts, DurabilityLevel?durability)
        {
            if (durability != null)
            {
                return(opts.Durability(durability.Value));
            }

            return(opts);
        }
Esempio n. 2
0
        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);
        }