We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e691dd4 commit 7651948Copy full SHA for 7651948
1 file changed
LessonsSamples/LessonsSamples/Lesson6/CoreContainerLifetime/NetCoreLifetimeDemo.cs
@@ -27,7 +27,7 @@ private static void ConfigureServices(ServiceCollection services)
27
services.AddTransient<IOperationTransient, Operation>();
28
services.AddScoped<IOperationScoped, Operation>();
29
services.AddSingleton<IOperationSingleton, Operation>();
30
- services.AddSingleton<IOperationSingletonInstance>(new Operation(Guid.Empty));
+ services.AddSingleton<IOperationSingletonInstance>(new Operation(Guid.NewGuid()));
31
32
services.AddTransient<IService, Service>();
33
services.AddTransient<MyController, MyController>();
0 commit comments