feat(payment): add per-user in-memory lock for gateway operations
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 9m58s
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 9m58s
Introduce IUserPaymentLock to serialize payment initiate and verify flows per user, preventing concurrent duplicate gateway requests across services. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -39,6 +39,7 @@ public static class ConfigureServices
|
||||
services.AddScoped<IAlertService, AlertService>();
|
||||
services.AddScoped<IUserNotificationService, UserNotificationService>();
|
||||
services.AddScoped<IKavenegarService, KavenegarService>();
|
||||
services.AddSingleton<IUserPaymentLock, UserPaymentLockService>();
|
||||
// Local file manager — files are saved to wwwroot/uploads/ on CMS disk
|
||||
services.AddSingleton<CMSMicroservice.Application.Common.FileManager.IFileManager, LocalFileManager>();
|
||||
services.AddScoped<IPermissionService, PermissionService>();
|
||||
|
||||
Reference in New Issue
Block a user