Open davidfowl opened 10 months ago
@davidfowl Is this what you are referring to in your first point?
https://learn.microsoft.com/en-us/aspnet/core/signalr/redis-backplane?view=aspnetcore-8.0
Is there no implementation for "Redis aspire component with SignalR" yet?
@andrebtoe Should be able to just create a redis resource in your app host and then have your signalr backplane point to it, seen here Link To Documentation
App Host
var builder = DistributedApplication.CreateBuilder(args);
var redis = builder.AddRedis("cache");
var apiservice = builder.AddProject<Projects.AspireRedis_ApiService>("apiservice")
.WithReference(redis);
builder.Build().Run();
The Api Service
// ...
builder.Services.AddSignalR().AddStackExchangeRedis("cache");
// ...