Example #1
0
 public GetRequest(Qoollo.BobClient.BobKey key, bool fullGet = false)
 {
     Key = new BlobKey
     {
         //Key = ByteString.CopyFrom(key.GetKeyBytes())
         Key = ProtoBufByteStringHelper.CreateFromByteArrayOptimized(key.GetKeyBytes())
     };
     Options = new GetOptions
     {
         Source = fullGet ? GetSource.All : GetSource.Normal,
     };
 }
Example #2
0
 public PutRequest(Qoollo.BobClient.BobKey key, byte[] data)
 {
     Key = new BlobKey
     {
         //Key = ByteString.CopyFrom(key.GetKeyBytes())
         Key = ProtoBufByteStringHelper.CreateFromByteArrayOptimized(key.GetKeyBytes())
     };
     Data = new Blob
     {
         //Data = ByteString.CopyFrom(data),
         Data = ProtoBufByteStringHelper.CreateFromByteArrayOptimized(data),
         Meta = new BlobMeta {
             Timestamp = unchecked ((ulong)DateTimeOffset.UtcNow.ToUnixTimeSeconds())
         }
     };
 }