File tree 1 file changed +0
-15
lines changed
src/Mvc/test/WebSites/ControllersFromServicesWebSite 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -25,21 +25,6 @@ public void ConfigureServices(IServiceCollection services)
25
25
. AddControllersWithViews ( )
26
26
. ConfigureApplicationPartManager ( manager => manager . ApplicationParts . Clear ( ) )
27
27
. 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
- } )
43
28
. AddControllersAsServices ( )
44
29
. AddViewComponentsAsServices ( )
45
30
. AddTagHelpersAsServices ( ) ;
You can’t perform that action at this time.
0 commit comments