Ejemplo n.º 1
0
 /// <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();
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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)
 {
 }
Ejemplo n.º 6
0
 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)
 {
 }