예제 #1
0
파일: Source.cs 프로젝트: formist/LinkMe
        protected override CommitStatus Update()
        {
            ICatalogueConnection connection = Catalogue.CatalogueConnection;
            CommitStatus         status     = connection.Update(this);

            // Send a notification if any events have been enabled or disabled.

            if (_eventStatusChanged)
            {
                var catalogueUpdate = connection as ICatalogueUpdate;
                if (catalogueUpdate != null)
                {
                    catalogueUpdate.EventStatusChanged(CatalogueElements.Source, FullyQualifiedReference);
                }

                _eventStatusChanged = false;
            }

            return(status);
        }
예제 #2
0
파일: Namespace.cs 프로젝트: formist/LinkMe
        protected override CommitStatus Update()
        {
            CheckEventOverlap();

            ICatalogueConnection connection = Catalogue.CatalogueConnection;
            CommitStatus         status     = connection.Update(this);

            // Send a notification if any events have been enabled or disabled.

            if (_eventStatusChanged)
            {
                var catalogueUpdate = connection as ICatalogueUpdate;
                if (catalogueUpdate != null)
                {
                    catalogueUpdate.EventStatusChanged(CatalogueElements.Namespace, FullName);
                }

                _eventStatusChanged = false;
            }

            return(status);
        }