17 lines
No EOL
403 B
C#
17 lines
No EOL
403 B
C#
using FrostFS.Refs;
|
|
using FrostFS.SDK.Cryptography;
|
|
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(Base58.Decode(containerId.Value))
|
|
};
|
|
}
|
|
} |