示例#1
0
        public void OnAfterObjectRegistration(ReadOnlyCollection <ObjectID> loadedObjectIDs, ReadOnlyCollection <DomainObject> actuallyLoadedDomainObjects)
        {
            ArgumentUtility.CheckNotNull("loadedObjectIDs", loadedObjectIDs);
            ArgumentUtility.CheckNotNull("actuallyLoadedDomainObjects", actuallyLoadedDomainObjects);

            try
            {
                if (actuallyLoadedDomainObjects.Count > 0)
                {
                    _eventSink.RaiseObjectsLoadedEvent(actuallyLoadedDomainObjects);
                }
            }
            finally
            {
                _hierarchyManager.OnAfterObjectRegistration(loadedObjectIDs);
            }
        }