Exemple #1
0
        public IDictionary <String, SchemaMetadataDiff> GetAllSchemaMetadataDiffs()
        {
            IDictionary <String, SchemaMetadataDiff> diffs
                = new Dictionary <String, SchemaMetadataDiff>();

            SchemaComparableList <SchemaEntry> baseAtEntries =
                baseEntryFetcher.GetAttributeSchemaEntries();
            SchemaComparableList <SchemaEntry> baseOcEntries =
                baseEntryFetcher.GetClassSchemaEntries();

            foreach (KeyValuePair <String, IEntryFetcher> p in entryFetchers)
            {
                String             serverName = p.Key;
                IEntryFetcher      fetcher    = p.Value;
                SchemaMetadataDiff diff       = null;
                if (fetcher != null)
                {
                    SchemaComparableList <SchemaEntry> otherAtEntries =
                        fetcher.GetAttributeSchemaEntries();
                    SchemaComparableList <SchemaEntry> otherOcEntries =
                        fetcher.GetClassSchemaEntries();

                    diff = new SchemaMetadataDiff(
                        baseAtEntries, baseOcEntries, otherAtEntries, otherOcEntries);
                }
                diffs.Add(serverName, diff);
            }
            return(diffs);
        }