コード例 #1
0
 public Task<WriteResult> Update(PreparedQueryDefinition query)
 {
     return Update(query, WriteOptions.Default);
 }
コード例 #2
0
 public Task<WriteResult> Update(PreparedQueryDefinition query, WriteOptions q)
 {
     return _client.Put(string.Format("/v1/query/{0}", query.ID), query, q).Execute();
 }
コード例 #3
0
 public Task<WriteResult<string>> Create(PreparedQueryDefinition query)
 {
     return Create(query, WriteOptions.Default);
 }
コード例 #4
0
 public async Task<WriteResult<string>> Create(PreparedQueryDefinition query, WriteOptions q)
 {
     var res = await _client.Post<PreparedQueryDefinition, PreparedQueryCreationResult>("/v1/query", query, q).Execute().ConfigureAwait(false);
     return new WriteResult<string>(res, res.Response.ID);
 }
コード例 #5
0
 public async Task<WriteResult<string>> Create(PreparedQueryDefinition query)
 {
     return await Create(query, WriteOptions.Default).ConfigureAwait(false);
 }
コード例 #6
0
 public async Task<WriteResult> Update(PreparedQueryDefinition query, WriteOptions q)
 {
     return await _client.Put(string.Format("/v1/query/{0}", query.ID), query, q).Execute().ConfigureAwait(false);
 }
コード例 #7
0
 public Task <WriteResult> Update(PreparedQueryDefinition query)
 {
     return(Update(query, WriteOptions.Default));
 }
コード例 #8
0
 public Task <WriteResult> Update(PreparedQueryDefinition query, WriteOptions q)
 {
     return(_client.Put(string.Format("/v1/query/{0}", query.ID), query, q).Execute());
 }
コード例 #9
0
        public async Task <WriteResult <string> > Create(PreparedQueryDefinition query, WriteOptions q)
        {
            var res = await _client.Post <PreparedQueryDefinition, PreparedQueryCreationResult>("/v1/query", query, q).Execute().ConfigureAwait(false);

            return(new WriteResult <string>(res, res.Response.ID));
        }
コード例 #10
0
 public Task <WriteResult <string> > Create(PreparedQueryDefinition query)
 {
     return(Create(query, WriteOptions.Default));
 }
コード例 #11
0
 public Task <WriteResult> Update(PreparedQueryDefinition query, WriteOptions q, CancellationToken ct = default(CancellationToken))
 {
     return(_client.Put(string.Format("/v1/query/{0}", query.ID), query, q).Execute(ct));
 }
コード例 #12
0
 public Task <WriteResult> Update(PreparedQueryDefinition query, CancellationToken ct = default(CancellationToken))
 {
     return(Update(query, WriteOptions.Default, ct));
 }
コード例 #13
0
        public async Task <WriteResult <string> > Create(PreparedQueryDefinition query, WriteOptions q, CancellationToken ct = default(CancellationToken))
        {
            var res = await _client.Post <PreparedQueryDefinition, JsonElement>("/v1/query", query, q).Execute(ct).ConfigureAwait(false);

            return(new WriteResult <string>(res, res.Response.GetProperty("ID").GetString()));
        }