/// <summary> /// Sets the timeout with the value from the builder if it was changed by calling WithTimeout() /// </summary> /// <param name="builder">The builder.</param> private void SetTimeoutIfNotDefault(ISubDocBuilder <T> builder) { if (builder.Timeout.HasValue) { Timeout = builder.Timeout.Value.GetSeconds(); } }
protected SubDocSingularBase(ISubDocBuilder <T> builder, string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout) : base(key, vBucket, transcoder, timeout) { Builder = builder; //override the default timeout if provided by the builder SetTimeoutIfNotDefault(builder); }
protected SubDocSingularMutationBase(ISubDocBuilder <T> builder, string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout) : base(builder, key, vBucket, transcoder, timeout) { }
protected SubDocSingularBase(ISubDocBuilder <T> builder, string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout) : base(key, vBucket, transcoder, timeout) { Builder = builder; }
public FakeSubDocumentOperation(ISubDocBuilder <T> builder, string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout) : base(builder, key, vBucket, transcoder, timeout) { }
protected SubDocSingularLookupBase(ISubDocBuilder <T> builder, string key, T value, IVBucket vBucket, ITypeTranscoder transcoder, uint opaque, uint timeout) : base(builder, key, value, vBucket, transcoder, opaque, timeout) { }