Add chaching and locking examples

This commit is contained in:
fiodarsazanavets
2026-02-02 20:30:53 +00:00
parent 1755b74692
commit ff801e35d9
106 changed files with 64454 additions and 3 deletions
@@ -12,7 +12,7 @@ public sealed class LocationUpdater(
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
var queueClient = queueServiceClient
.GetQueueClient("orders.created");
.GetQueueClient("orders-created");
await queueClient.CreateIfNotExistsAsync();
while (!stoppingToken.IsCancellationRequested)
@@ -533,7 +533,7 @@ app.MapPost("/api/orders", async (
}
var queueClient = queueServiceClient
.GetQueueClient("orders.created");
.GetQueueClient("orders-created");
queueClient.CreateIfNotExists();
var message = JsonSerializer.Serialize(new { orderId });