Beispiel #1
0
        public static Address ParseString(string address)
        {
            var parts = address.Split('/');

            if (parts.Length != 2)
            {
                throw new FormatException(nameof(ParseString) + " invalid address string");
            }
            var cid = ContainerID.FromString(parts[0]);
            var oid = ObjectID.FromString(parts[1]);

            return(new Address
            {
                ContainerId = cid,
                ObjectId = oid,
            });
        }
Beispiel #2
0
 public Address(ContainerID cid, ObjectID oid)
 {
     ContainerId = cid;
     ObjectId    = oid;
 }