private IVirtualEndPoint RegisterVirtualEndPoint(RelationEndPointID endPointID) { var endPoint = _endPointFactory.CreateVirtualEndPoint(endPointID, false); _registrationAgent.RegisterEndPoint(endPoint, _map); return(endPoint); }
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); } }