16 lines
No EOL
359 B
C#
16 lines
No EOL
359 B
C#
using FrostFS.Refs;
|
|
using FrostFS.SDK.ModelsV2;
|
|
using Google.Protobuf;
|
|
|
|
namespace FrostFS.SDK.ClientV2.Mappers.GRPC;
|
|
|
|
public static class ContainerIdMapper
|
|
{
|
|
public static ContainerID ToGrpcMessage(this ContainerId containerId)
|
|
{
|
|
return new ContainerID
|
|
{
|
|
Value = ByteString.CopyFrom(containerId.ToHash())
|
|
};
|
|
}
|
|
} |