frostfs-sdk-csharp/src/FrostFS.SDK.ClientV2/Mappers/GRPC/OwnerId.cs
Ivan Pchelintsev 11eff4e23e [#1] Move files to top level directory
Signed-off-by: Ivan Pchelintsev <i.pchelintsev@yadro.com>
2024-05-22 14:29:20 +03:00

16 lines
No EOL
335 B
C#

using FrostFS.SDK.ModelsV2;
using FrostFS.Refs;
using Google.Protobuf;
namespace FrostFS.SDK.ClientV2.Mappers.GRPC;
public static class OwnerIdMapper
{
public static OwnerID ToGrpcMessage(this OwnerId ownerId)
{
return new OwnerID
{
Value = ByteString.CopyFrom(ownerId.ToHash())
};
}
}