private void ConvertThroughProto(Checkpoint source) { Com.Daml.Ledger.Api.V1.Checkpoint protoValue = source.ToProto(); Checkpoint target = Checkpoint.FromProto(protoValue); Assert.True(source == target); }
public static Checkpoint FromProto(Com.Daml.Ledger.Api.V1.Checkpoint checkpoint) => new Checkpoint(checkpoint.RecordTime.ToDateTimeOffset(), LedgerOffset.FromProto(checkpoint.Offset));