コード例 #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();
     }
 }
コード例 #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);
        }
コード例 #3
0
 protected SubDocSingularMutationBase(ISubDocBuilder <T> builder, string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout)
     : base(builder, key, vBucket, transcoder, timeout)
 {
 }
コード例 #4
0
 protected SubDocSingularBase(ISubDocBuilder <T> builder, string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout)
     : base(key, vBucket, transcoder, timeout)
 {
     Builder = builder;
 }
コード例 #5
0
 public FakeSubDocumentOperation(ISubDocBuilder <T> builder, string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout)
     : base(builder, key, vBucket, transcoder, timeout)
 {
 }
コード例 #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)
 {
 }