예제 #1
0
        private void ConvertThroughProto(Checkpoint source)
        {
            Com.Daml.Ledger.Api.V1.Checkpoint protoValue = source.ToProto();
            Checkpoint target = Checkpoint.FromProto(protoValue);

            Assert.True(source == target);
        }
예제 #2
0
 public static Checkpoint FromProto(Com.Daml.Ledger.Api.V1.Checkpoint checkpoint) => new Checkpoint(checkpoint.RecordTime.ToDateTimeOffset(), LedgerOffset.FromProto(checkpoint.Offset));