Exemple #1
0
 /// <exception cref="ArgumentException">parts is null or empty.</exception>
 /// <exception cref="IndexAlreadyExistsException"></exception>
 /// <exception cref="TarantoolResponseException"></exception>
 public static Task CreateIndexAsync(
     this ITarantoolClient tarantoolClient,
     string spaceName,
     string indexName,
     IndexType indexType,
     params IndexPart[] parts)
 {
     return(tarantoolClient.CreateIndexAsync(spaceName, indexName, indexType, CancellationToken.None, parts));
 }
 /// <exception cref="TarantoolResponseException"></exception>
 public static async Task CreateIndexIfNotExistsAsync(
     this ITarantoolClient tarantoolClient,
     string spaceName,
     string indexName,
     IndexType indexType,
     params IndexPart[] parts)
 {
     try
     {
         await tarantoolClient.CreateIndexAsync(spaceName, indexName, indexType, parts).ConfigureAwait(false);
     }
     catch (IndexAlreadyExistsException)
     {
     }
 }