예제 #1
0
 /// <summary>Registers an existing prefix as a directory with the given <paramref name="name"/> (creating parent directories if necessary). This method is only indented for advanced use cases.</summary>
 /// <param name="name">Name of the directory to create</param>
 /// <param name="layer">If <paramref name="layer"/> is specified, it is recorded with the directory and will be checked by future calls to open.</param>
 /// <param name="prefix">The directory will be created with the given physical prefix; otherwise a prefix is allocated automatically.</param>
 public Task <FdbDirectorySubspace> RegisterAsync([NotNull] string name, Slice layer, Slice prefix, CancellationToken cancellationToken)
 {
     return(m_database.ReadWriteAsync((tr) => m_directory.RegisterAsync(tr, new[] { name }, layer, prefix), cancellationToken));
 }