mirror of
https://github.com/fiodarsazanavets/aspire-13-examples.git
synced 2026-06-20 12:23:14 +00:00
Add chaching and locking examples
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user