Esempio n. 1
0
        public void RegisterEndPoints(DataContainer dataContainer, RelationEndPointMap relationEndPointMap)
        {
            ArgumentUtility.CheckNotNull("dataContainer", dataContainer);
            ArgumentUtility.CheckNotNull("relationEndPointMap", relationEndPointMap);

            foreach (var id in GetOwnedEndPointIDs(dataContainer))
            {
                var endPoint = id.Definition.IsVirtual
                           ? (IRelationEndPoint)_endPointFactory.CreateVirtualEndPoint(id, true)
                           : _endPointFactory.CreateRealObjectEndPoint(id, dataContainer);
                _registrationAgent.RegisterEndPoint(endPoint, relationEndPointMap);
            }
        }
Esempio n. 2
0
 public IRealObjectEndPoint CreateRealObjectEndPoint(RelationEndPointID endPointID, DataContainer dataContainer)
 {
     return(_innerFactory.CreateRealObjectEndPoint(endPointID, dataContainer));
 }