Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show how to use aspire components with existing ASP.NET Core features #9

Open
3 tasks
davidfowl opened this issue Oct 29, 2023 · 3 comments
Open
3 tasks

Comments

@davidfowl
Copy link
Member

  • - Redis aspire component with SignalR
  • - Azure blob aspire component with data protection
  • - Azure table aspire component with orleans
@josephaw1022
Copy link

@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

@andrebtoe
Copy link

Is there no implementation for "Redis aspire component with SignalR" yet?

@josephaw1022
Copy link

josephaw1022 commented Apr 12, 2024

@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");

// ... 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants