Exemplo n.º 1
0
        public void RaiseObjectsLoadedEvent(ReadOnlyCollection <DomainObject> domainObjects)
        {
            ArgumentUtility.CheckNotNull("domainObjects", domainObjects);

            using (EnterScopeOnDemand())
            {
                foreach (var domainObject in domainObjects)
                {
                    domainObject.OnLoaded();
                }

                _clientTransaction.OnLoaded(new ClientTransactionEventArgs(domainObjects));
            }

            _extensionCollection.ObjectsLoaded(_clientTransaction, domainObjects);
            _listenerCollection.ObjectsLoaded(_clientTransaction, domainObjects);
        }