[#28] Client: Move CalculateObjectId from IFrostFsClient to statis tools

Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
Pavel Gross 2024-12-10 15:01:28 +03:00 committed by PavelGrossSpb
parent 543247e4d9
commit db9b93b2e6
4 changed files with 23 additions and 20 deletions

View file

@ -646,14 +646,6 @@ public partial class Pool : IFrostFSClient
return client.Client!.SearchObjectsAsync(args, ctx);
}
public FrostFsObjectId CalculateObjectId(FrostFsObjectHeader header)
{
if (header == null)
throw new ArgumentNullException(nameof(header));
return ObjectTools.CalculateObjectId(header, Owner, _version, Key);
}
public async Task<Accounting.Decimal> GetBalanceAsync(CallContext ctx)
{
var client = Connection();