mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-18 09:52:11 +08:00
Update PersistMessageProcessor
This commit is contained in:
parent
196f0a0a17
commit
a6957c272c
@ -18,7 +18,7 @@ public class PersistMessageProcessor : IPersistMessageProcessor
|
|||||||
private readonly IMediator _mediator;
|
private readonly IMediator _mediator;
|
||||||
private readonly IPersistMessageDbContext _persistMessageDbContext;
|
private readonly IPersistMessageDbContext _persistMessageDbContext;
|
||||||
private readonly IPublishEndpoint _publishEndpoint;
|
private readonly IPublishEndpoint _publishEndpoint;
|
||||||
private static SemaphoreSlim Semaphore => new SemaphoreSlim(initialCount: 0, maxCount: 1);
|
private SemaphoreSlim Semaphore => new SemaphoreSlim(1);
|
||||||
|
|
||||||
public PersistMessageProcessor(
|
public PersistMessageProcessor(
|
||||||
ILogger<PersistMessageProcessor> logger,
|
ILogger<PersistMessageProcessor> logger,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user