File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
samples/JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1 Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Builder ;
22using Microsoft . AspNetCore . Hosting ;
33using Microsoft . AspNetCore . Mvc ;
4+ using Microsoft . AspNetCore . Mvc . ApplicationParts ;
45using Microsoft . Extensions . Configuration ;
56using Microsoft . Extensions . DependencyInjection ;
67using Microsoft . Extensions . Logging ;
@@ -69,6 +70,11 @@ public void ConfigureServices(IServiceCollection services)
6970 ;
7071
7172 // Add framework services.
73+ var manager = new ApplicationPartManager ( ) ;
74+ manager . ApplicationParts . Add ( new AssemblyPart ( typeof ( Startup ) . Assembly ) ) ;
75+
76+ services . AddSingleton ( manager ) ;
77+
7278 services . AddMvc ( options =>
7379 {
7480 options . CacheProfiles . Add ( "CacheCompressedContent5Minutes" ,
You can’t perform that action at this time.
0 commit comments