Skip to content

Conversation

@Chansazm
Copy link
Collaborator

This helps when two users are trying to access the same resource at the same time, handles them gracefully.

@github-actions
Copy link

Formatting Issues Detected!

  • Backend (Csharpier): Please run dotnet csharpier format . to fix formatting.
View Csharpier output
Error ./Project.App/Project.Api/Infrastructure/ConcurrencyExceptionFilter.cs - Was not formatted.
  The file did not end with a single newline.
Error ./Project.App/Project.Api/Infrastructure/ConcurrencyProblemDetails.cs - Was not formatted.
  The file did not end with a single newline.
Error ./Project.App/Project.Api/Repositories/UserRepository.cs - Was not formatted.
  ----------------------------- Expected: Around Line 52 -----------------------------
  
          // Update user balance
          public async Task UpdateBalanceAsync(User user)
  ----------------------------- Actual: Around Line 52 -----------------------------
  
          // Update user balance·
          public async Task UpdateBalanceAsync(User user)
  
Checked 75 files in 756ms.

@github-actions
Copy link

Formatting Issues Detected!

  • Backend (Csharpier): Please run dotnet csharpier format . to fix formatting.
View Csharpier output
Error ./Project.App/Project.Api/Program.cs - Was not formatted.
  ----------------------------- Expected: Around Line 9 -----------------------------
  using Project.Api.Data;
  using Project.Api.Infrastructure;
  using Project.Api.Repositories;
  ----------------------------- Actual: Around Line 9 -----------------------------
  using Project.Api.Data;
  using Project.Api.Repositories;
  using Project.Api.Repositories.Interface;
  
Error ./Project.App/Project.Api/Infrastructure/ConcurrencyProblemDetails.cs - Was not formatted.
  The file did not end with a single newline.
Error ./Project.App/Project.Api/Infrastructure/ConcurrencyExceptionFilter.cs - Was not formatted.
  The file did not end with a single newline.
Error ./Project.App/Project.Api/Repositories/UserRepository.cs - Was not formatted.
  ----------------------------- Expected: Around Line 52 -----------------------------
  
          // Update user balance
          public async Task UpdateBalanceAsync(User user)
  ----------------------------- Actual: Around Line 52 -----------------------------
  
          // Update user balance·
          public async Task UpdateBalanceAsync(User user)
  
Checked 75 files in 760ms.

@Salvarez99 Salvarez99 closed this Oct 24, 2025
@alt-potato alt-potato deleted the 119-Optimistic-Locking-database branch October 27, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants