LockService, RequestId, ConnectionId, BidButtonDisabled; improvements, fixes, etc...
This commit is contained in:
parent
91e9cffd0d
commit
3178b031e4
|
|
@ -0,0 +1,6 @@
|
|||
namespace Mango.Nop.Services;
|
||||
|
||||
public interface IMgLockService
|
||||
{
|
||||
SemaphoreSlim SemaphoreSlim { get; }
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue