We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent add5e75 commit 3b0e486Copy full SHA for 3b0e486
034_AddTransient_DeepDive/Controllers/BasicController.cs
@@ -22,6 +22,7 @@ public IActionResult Index(int id)
22
23
var dataFlowTrace = new
24
{
25
+ // For Transient, this will be keep on changing
26
ServiceInstanceId = _basicService.GetInstanceId()
27
};
28
034_AddTransient_DeepDive/Program.cs
@@ -14,6 +14,8 @@ public static void Main(string[] args)
14
15
// Add services to the container.
16
17
+ builder.Services.AddTransient<IBasicService, BasicService>();
18
+
19
builder.Services.AddTransient<IUserService, UserService>();
20
builder.Services.AddTransient<IUserRepository, UserRepository>();
21
0 commit comments