Implement user login and registration; update database connection management to be per use not a singleton by adjusting service lifetimes in DI.
This commit is contained in:
@@ -19,7 +19,7 @@ if (args.Contains("Pull-Stock-Data")) {
|
||||
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
|
||||
|
||||
// Insert the DB driver for Dependency Injection
|
||||
builder.Services.AddSingleton<DbDriver>();
|
||||
builder.Services.AddScoped<DbDriver>();
|
||||
|
||||
// Insert the python modlue for Dependency Injection
|
||||
builder.Services.AddSingleton(interopModule);
|
||||
|
||||
Reference in New Issue
Block a user