private static void GetAllComponentsLinkedToButNotOnPage() { var schemas = SchemaHelpers.LoadAllSchemasByPublication(filterPredicate: x => x.Title.ToLower().Contains("[deprecated]")); Logger.Info("found {0} schemas", schemas.Count); Parallel.ForEach(schemas, new ParallelOptions { MaxDegreeOfParallelism = Settings.MaxThreads }, schema => { ProcessSchema(schema); }); }
private static void ProcessSchemasAndUsage() { var schemas = SchemaHelpers.LoadAllSchemasByPublication(); foreach (var schemaGroup in schemas.GroupBy(x => x.Purpose)) { Logger.Debug(""); Logger.Debug("{0} Schemas", schemaGroup.First().Purpose); Logger.Debug("===================="); Parallel.ForEach(schemaGroup, new ParallelOptions { MaxDegreeOfParallelism = Settings.MaxThreads }, schema => { //CSV Format, to be opened in Excel Logger.Info("{0},{1},{2},{3}", schema.Purpose, schema.Title, schema.BluePrintInfo.OwningRepository.Title, schema.GetAllUsageCount <ComponentData>()); } ); } }