public IEnumerable<PipeOutputPackage> SiblingPackageLateBounded(ISemanticRegistryObserver siblingObserver)
 {
     return
         from observer in _observers
         let newPackagesToInstall = observer.SiblingPackageLateBounded(siblingObserver)
         where newPackagesToInstall != null
         from additionalPackage in newPackagesToInstall
         select additionalPackage;
 }
 public IEnumerable <PipeOutputPackage> SiblingPackageLateBounded(ISemanticRegistryObserver siblingObserver)
 {
     return
         (from observer in _observers
          let newPackagesToInstall = observer.SiblingPackageLateBounded(siblingObserver)
                                     where newPackagesToInstall != null
                                     from additionalPackage in newPackagesToInstall
                                     select additionalPackage);
 }
コード例 #3
0
        public void RegisterObserver(ISemanticRegistryObserver observer)
        {
            if (observer == null)
            {
                throw new ArgumentNullException("observer");
            }

            _registryMediator.AppendObserver(observer);
        }
コード例 #4
0
        public void AppendObserver(ISemanticRegistryObserver observer)
        {
            foreach (var semanticRegistryObserver in _observers)
            {
                var siblingPackageLateBounded = semanticRegistryObserver.SiblingPackageLateBounded(observer);
                DoPackageInstallations(siblingPackageLateBounded);
            }

            _observers.Add(observer);
        }
コード例 #5
0
        public void AppendObserver(ISemanticRegistryObserver observer)
        {
            foreach (var semanticRegistryObserver in _observers)
            {
                var siblingPackageLateBounded = semanticRegistryObserver.SiblingPackageLateBounded(observer);
                DoPackageInstallations(siblingPackageLateBounded);
            }

            _observers.Add(observer);
        }
        public IEnumerable<PipeOutputPackage> SiblingPackageLateBounded(ISemanticRegistryObserver siblingObserver)
        {
            var additionalPackages =
                from historicalPackage in _historicalPackages
                let siblingPackages = siblingObserver.PipePackageInstalled(historicalPackage)
                where siblingPackages != null
                select siblingPackages;

            return additionalPackages.SelectMany(x => x);
        }
        public IEnumerable <PipeOutputPackage> SiblingPackageLateBounded(ISemanticRegistryObserver siblingObserver)
        {
            var additionalPackages =
                from historicalPackage in _historicalPackages
                let siblingPackages = siblingObserver.PipePackageInstalled(historicalPackage)
                                      where siblingPackages != null
                                      select siblingPackages;

            return(additionalPackages.SelectMany(x => x));
        }
 public IEnumerable <PipeOutputPackage> SiblingPackageLateBounded(ISemanticRegistryObserver siblingObserver)
 {
     return(_wrappedObserver.SiblingPackageLateBounded(siblingObserver));
 }
 public MemorisedChainBuilderRegistryBuilder(ISemanticRegistryObserver wrappedObserver)
 {
     _wrappedObserver = wrappedObserver;
 }
 public IEnumerable<PipeOutputPackage> SiblingPackageLateBounded(ISemanticRegistryObserver siblingObserver)
 {
     return null;
 }
 public void AppendObserver(ISemanticRegistryObserver observer)
 {
     _nextMediator.AppendObserver(observer);
 }
 public void AppendObserver(ISemanticRegistryObserver observer)
 {
     _nextMediator.AppendObserver(observer);
 }
コード例 #13
0
 public void AppendObserver(ISemanticRegistryObserver observer)
 {
     _safetyTrip.DoAction(() => _nextMediator.AppendObserver(observer));
 }
 public MemorisedChainBuilderRegistryBuilder(ISemanticRegistryObserver wrappedObserver)
 {
     _wrappedObserver = wrappedObserver;
 }
コード例 #15
0
 public void AppendObserver(ISemanticRegistryObserver observer)
 {
     _safetyTrip.DoAction(() => _nextMediator.AppendObserver(observer));
 }