Ejemplo n.º 1
0
        //=====================================================================

        /// <summary>
        /// This is called to visit all namespaces, types, and members in the list of assemblies to be documented
        /// </summary>
        public void VisitApis()
        {
            // Store types.  We have to do this after all assemblies are registered because the resolution may
            // not work unless all the assemblies we need are in the resolver cache.
            foreach (AssemblyNode assembly in assemblies)
            {
                this.StoreTypes(assembly.Types);

                if (this.Canceled)
                {
                    break;
                }
            }

            if (!this.Canceled)
            {
                NamespaceList spaces = new NamespaceList();

                foreach (Namespace space in catalog.Values)
                {
                    if (filter.IsExposedNamespace(space))
                    {
                        spaces.Add(space);
                    }
                }

                if (!this.Canceled)
                {
                    this.VisitNamespaces(spaces);
                }
            }
        }
Ejemplo n.º 2
0
        // Visit Object Model

        public void VisitApis()
        {
            // store types
            // we have to do this after all assemblies are registered because the resolution may not work unless
            // all the assemblies we need are in the resolver cache
            //Console.WriteLine("storing types");
            foreach (AssemblyNode assembly in assemblies)
            {
                //Console.WriteLine("assembly {0}", assembly.Name);
                //Console.WriteLine("has {0} types", assembly.Types.Count);
                StoreTypes(assembly.Types);
                //Console.WriteLine("done with assembly");
            }
            //Console.WriteLine("done storing types");

            //Console.WriteLine("visiting namespaces");
            NamespaceList spaces = new NamespaceList();

            foreach (Namespace space in catalog.Values)
            {
                if (filter.IsExposedNamespace(space))
                {
                    spaces.Add(space);
                }
            }
            VisitNamespaces(spaces);
        }