Ejemplo n.º 1
0
 public async Task CreateAnalyzerAsync(ArangoHandle database,
                                       ArangoAnalyzer analyzer,
                                       CancellationToken cancellationToken = default)
 {
     await SendAsync <QueryResponse <JObject> >(HttpMethod.Post,
                                                $"{Server}/_db/{DbName(database)}/_api/analyzer",
                                                JsonConvert.SerializeObject(analyzer, JsonSerializerSettings),
                                                cancellationToken : cancellationToken);
 }
Ejemplo n.º 2
0
 public async Task CreateAsync(ArangoHandle database,
                               ArangoAnalyzer analyzer,
                               CancellationToken cancellationToken = default)
 {
     await SendAsync <QueryResponse <ArangoVoid> >(database, HttpMethod.Post,
                                                   ApiPath(database, "analyzer"),
                                                   analyzer,
                                                   cancellationToken : cancellationToken);
 }
Ejemplo n.º 3
0
 public async Task CreateAsync(ArangoHandle database,
                               ArangoAnalyzer analyzer,
                               CancellationToken cancellationToken = default)
 {
     await SendAsync <QueryResponse <JObject> >(HttpMethod.Post,
                                                ApiPath(database, "analyzer"),
                                                Serialize(analyzer),
                                                cancellationToken : cancellationToken);
 }