We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33337ae commit 76b19d6Copy full SHA for 76b19d6
src/TesterApp/Startup.cs
@@ -1,5 +1,6 @@
1
using Microsoft.AspNetCore.Builder;
2
using Microsoft.AspNetCore.Hosting;
3
+using Microsoft.Extensions.DependencyInjection;
4
using Microsoft.Extensions.Hosting;
5
using Simplify.DI;
6
using Simplify.Web;
@@ -18,10 +19,14 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
18
19
20
app.UseSimplifyWebWithoutRegistrations();
21
- DIContainer.Current.RegisterAll().Verify();
22
-
23
if (env.IsDevelopment())
24
DIContainer.Current.GeneratePostmanData();
25
}
+ public void ConfigureServices(IServiceCollection services) => InitializeContainer();
26
+
27
+ private static void InitializeContainer() =>
28
+ DIContainer.Current
29
+ .RegisterAll()
30
+ .Verify();
31
32
0 commit comments