Merge pull request #224 from dotnet/Rick-Anderson-patch-1

Update Program.cs
pull/226/head
Rick Anderson 2023-10-13 09:35:58 -10:00 committed by GitHub
commit 9c15638408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -10,8 +10,8 @@ builder.Services.AddControllers();
var app = builder.Build();
app.MapGet("/big", ([FromKeyedServices("big")] ICache bigCache) => bigCache.Get("date"));
app.MapGet("/small", ([FromKeyedServices("small")] ICache smallCache) => smallCache.Get("date"));
app.MapGet("/small", ([FromKeyedServices("small")] ICache smallCache) =>
smallCache.Get("date"));
app.MapControllers();
@ -48,4 +48,4 @@ public class MyHub : Hub
{
Console.WriteLine(cache.Get("signalr"));
}
}
}