Exemplo n.º 1
0
        public IMessage OpenAsMessage()
        {
            if (!IsMessage)
            {
                return(default(IMessage));
            }

            var nodeID = BitConverter.ToUInt32(Bytes, 0);

            var messagePropbag = _dbContext.GetSubObjectByNodeId(_propBag, nodeID);

            return(new Message(_dbContext, messagePropbag));
        }
Exemplo n.º 2
0
 public Attachment(IDBAccessor context, IPropertyObject propBag, IPropertyObject parent)
 {
     _dbContext = context;
     _propBag   = _dbContext.GetSubObjectByNodeId(parent, propBag.Node);
 }