GetQ.cs (d3892232) GetQ.cs (7eff8cd8)
1´╗┐using Couchbase.Core;
2using Couchbase.Core.Transcoders;
3using Couchbase.IO.Converters;
4
5namespace Couchbase.IO.Operations
6{
7 internal class Unlock : OperationBase
8 {
1´╗┐using Couchbase.Core;
2using Couchbase.Core.Transcoders;
3using Couchbase.IO.Converters;
4
5namespace Couchbase.IO.Operations
6{
7 internal class Unlock : OperationBase
8 {
9 public Unlock(string key, ITypeTranscoder transcoder, IVBucket vBucket, uint timeout)
9 public Unlock(string key, IVBucket vBucket, ITypeTranscoder transcoder, uint timeout)
10 : base(key, vBucket, transcoder, timeout)
11 {
12 }
13
14 public override OperationCode OperationCode
15 {
16 get { return OperationCode.Unlock; }
17 }
18
19 public override IOperation Clone()
20 {
10 : base(key, vBucket, transcoder, timeout)
11 {
12 }
13
14 public override OperationCode OperationCode
15 {
16 get { return OperationCode.Unlock; }
17 }
18
19 public override IOperation Clone()
20 {
21 var cloned = new Unlock(Key, Transcoder, VBucket, Timeout)
21 var cloned = new Unlock(Key, VBucket, Transcoder, Timeout)
22 {
23 Attempts = Attempts,
24 Cas = Cas,
25 CreationTime = CreationTime,
26 Opaque = Opaque,
27 LastConfigRevisionTried = LastConfigRevisionTried
28 };
29 return cloned;
30 }
22 {
23 Attempts = Attempts,
24 Cas = Cas,
25 CreationTime = CreationTime,
26 Opaque = Opaque,
27 LastConfigRevisionTried = LastConfigRevisionTried
28 };
29 return cloned;
30 }
31
32 public override bool RequiresKey
33 {
34 get { return true; }
35 }
31 }
32}
36 }
37}