LockService, RequestId, ConnectionId, BidButtonDisabled; improvements, fixes, etc...

This commit is contained in:
Loretta 2024-12-12 08:55:37 +01:00
parent 91e9cffd0d
commit 3178b031e4
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,6 @@
namespace Mango.Nop.Services;
public interface IMgLockService
{
SemaphoreSlim SemaphoreSlim { get; }
}

View File

@ -0,0 +1,15 @@
namespace Mango.Nop.Services;
public abstract class MgLockService : IMgLockService
{
public SemaphoreSlim SemaphoreSlim { get; protected init; }
protected MgLockService() : this(new SemaphoreSlim(1))
{
}
protected MgLockService(SemaphoreSlim semaphoreSlim)
{
SemaphoreSlim = semaphoreSlim;
}
}