We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4827442 commit 94931d5Copy full SHA for 94931d5
1 file changed
samples/JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1/Startup.cs
@@ -1,6 +1,7 @@
1
using Microsoft.AspNetCore.Builder;
2
using Microsoft.AspNetCore.Hosting;
3
using Microsoft.AspNetCore.Mvc;
4
+using Microsoft.AspNetCore.Mvc.ApplicationParts;
5
using Microsoft.Extensions.Configuration;
6
using Microsoft.Extensions.DependencyInjection;
7
using Microsoft.Extensions.Logging;
@@ -69,6 +70,11 @@ public void ConfigureServices(IServiceCollection services)
69
70
;
71
72
// Add framework services.
73
+ var manager = new ApplicationPartManager();
74
+ manager.ApplicationParts.Add(new AssemblyPart(typeof(Startup).Assembly));
75
+
76
+ services.AddSingleton(manager);
77
78
services.AddMvc(options =>
79
{
80
options.CacheProfiles.Add("CacheCompressedContent5Minutes",
0 commit comments