Update Program.cs

pull/224/head
Rick Anderson 2023-10-12 14:52:56 -10:00 committed by GitHub
parent 9e21f48b0b
commit c534380347
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"));
}
}
}