/// <inheritdoc/>
 public void OpenNamespace(string nsName, NamespaceOptions options = null)
 {
     using (var nsNameRx = nsName.GetHandle())
         Assert.ThrowIfError(() =>
         {
             reindexer_error rsp = default;
             for (int retry = 0; retry < 2; retry++)
             {
                 rsp = ReindexerBinding.reindexer_open_namespace(Rx, nsNameRx, options ?? new NamespaceOptions(), _ctxInfo);
                 if (rsp.code != 0)
                 {
                     ReindexerBinding.reindexer_close_namespace(Rx, nsNameRx, _ctxInfo);
                 }
             }
             return(rsp);
         });
 }
 /// <inheritdoc/>
 public void CloseNamespace(string nsName)
 {
     using (var nsNameRx = nsName.GetHandle())
         Assert.ThrowIfError(() =>
                             ReindexerBinding.reindexer_close_namespace(Rx, nsNameRx, _ctxInfo));
 }