public ChangeLayerAsync ( IFdbTransaction trans, Slice newLayer ) : Task |
||
trans | IFdbTransaction | Transaction to use for the operation |
newLayer | Slice | New layer id of this directory |
리턴 | Task |
/// <summary>Change the layer id of this directory</summary> public static Task <FdbDirectorySubspace> ChangeLayerAsync([NotNull] this FdbDirectorySubspace subspace, [NotNull] IFdbRetryable db, Slice newLayer, CancellationToken ct) { Contract.NotNull(subspace, nameof(subspace)); Contract.NotNull(db, nameof(db)); return(db.ReadWriteAsync((tr) => subspace.ChangeLayerAsync(tr, newLayer), ct)); }
/// <summary>Change the layer id of this directory</summary> public static Task <FdbDirectorySubspace> ChangeLayerAsync([NotNull] this FdbDirectorySubspace subspace, [NotNull] IFdbRetryable db, Slice newLayer, CancellationToken ct) { if (subspace == null) { throw new ArgumentNullException(nameof(subspace)); } if (db == null) { throw new ArgumentNullException(nameof(db)); } return(db.ReadWriteAsync((tr) => subspace.ChangeLayerAsync(tr, newLayer), ct)); }