|
@@ -20,10 +20,10 @@ namespace MTWorkHR.Application
|
|
|
|
|
|
services.AddMediatR(Assembly.GetExecutingAssembly());
|
|
|
|
|
|
- services.AddTransient<IAuthService, AuthService>();
|
|
|
- services.AddTransient<IUserService, UserService>();
|
|
|
+ services.AddScoped<IAuthService, AuthService>();
|
|
|
+ services.AddScoped<IUserService, UserService>();
|
|
|
//services.AddTransient<IFileService, FileService>();
|
|
|
- services.AddTransient<IFileService, BlobFileService>();
|
|
|
+ services.AddScoped<IFileService, BlobFileService>();
|
|
|
services.AddScoped<IProjectService, ProjectService>();
|
|
|
services.AddScoped<IUserTaskService, UserTaskService>();
|
|
|
services.AddScoped<IUserTaskAttachmentService, UserTaskAttachmentService>();
|