This package provides Aspire integration for Azure Redis as a Dapr component. It allows you to configure dapr state to use Azure Redis as part of your Aspire AppHost projects.
To use this package, install it into your Aspire AppHost project:
dotnet add package CommunityToolkit.Aspire.Hosting.Azure.Dapr.Redisvar builder = DistributedApplication.CreateBuilder(args);
var redisState = builder.AddAzureRedis("redisState")
.RunAsContainer(); // for local development
var daprState = builder.AddDaprStateStore("daprState")
.WithReference(redisState); //instructs aspire to use azure redis when publishing
var api = builder.AddProject<Projects.MyApiService>("example-api")
.WithReference(daprState)
.WithDaprSidecar();
builder.Build().Run();The current version of the integration currently focuses on publishing and does not make any changes to how dapr components are handled in local development