Rename old manifest stuff to legacy manifest

This commit is contained in:
kjac
2023-02-15 14:57:21 +01:00
parent 04ea016293
commit d2ed03a5d8
34 changed files with 307 additions and 150 deletions

View File

@@ -27,10 +27,10 @@ public class ContentAppFactoryCollectionBuilder : OrderedCollectionBuilderBase<C
// get the manifest parser just-in-time - injecting it in the ctor would mean that
// simply getting the builder in order to configure the collection, would require
// its dependencies too, and that can create cycles or other oddities
IManifestParser manifestParser = factory.GetRequiredService<IManifestParser>();
ILegacyManifestParser legacyManifestParser = factory.GetRequiredService<ILegacyManifestParser>();
IIOHelper ioHelper = factory.GetRequiredService<IIOHelper>();
return base.CreateItems(factory)
.Concat(manifestParser.CombinedManifest.ContentApps.Select(x =>
new ManifestContentAppFactory(x, ioHelper)));
.Concat(legacyManifestParser.CombinedManifest.ContentApps.Select(x =>
new LegacyManifestContentAppFactory(x, ioHelper)));
}
}