fix (#184)
parent
4a6432f711
commit
a69dea45e9
|
@ -1,6 +1,6 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace WebKeyedService;
|
||||
namespace WebKeyedService.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("/cache")]
|
|
@ -1,12 +1,13 @@
|
|||
using Microsoft.AspNetCore.SignalR;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace WebKeyedService.Hubs;
|
||||
|
||||
|
||||
// <snippet_1>
|
||||
public class MyHub : Hub
|
||||
{
|
||||
public void Method([FromKeyedServices("small")] ICache cache)
|
||||
{
|
||||
Console.WriteLine(cache.Get("signalr"));
|
||||
}
|
||||
}
|
||||
}
|
||||
// </snippet_1>
|
||||
|
|
Loading…
Reference in New Issue