Skip to content

Commit 1fe52ee

Browse files
committed
Fix up Startup for test site
1 parent 6c0ec40 commit 1fe52ee

File tree

1 file changed

+0
-15
lines changed
  • src/Mvc/test/WebSites/ControllersFromServicesWebSite

1 file changed

+0
-15
lines changed

src/Mvc/test/WebSites/ControllersFromServicesWebSite/Startup.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,6 @@ public void ConfigureServices(IServiceCollection services)
2525
.AddControllersWithViews()
2626
.ConfigureApplicationPartManager(manager => manager.ApplicationParts.Clear())
2727
.AddApplicationPart(typeof(TimeScheduleController).GetTypeInfo().Assembly)
28-
.ConfigureApplicationPartManager(manager =>
29-
{
30-
manager.ApplicationParts.Add(new TypesPart(
31-
typeof(AnotherController),
32-
typeof(ComponentFromServicesViewComponent),
33-
typeof(InServicesTagHelper)));
34-
35-
var relatedAssenbly = RelatedAssemblyAttribute
36-
.GetRelatedAssemblies(GetType().Assembly, throwOnError: true)
37-
.SingleOrDefault();
38-
foreach (var part in CompiledRazorAssemblyApplicationPartFactory.GetDefaultApplicationParts(relatedAssenbly))
39-
{
40-
manager.ApplicationParts.Add(part);
41-
}
42-
})
4328
.AddControllersAsServices()
4429
.AddViewComponentsAsServices()
4530
.AddTagHelpersAsServices();

0 commit comments

Comments
 (0)