I have several applications running in Aspire. I'm trying to add pub/sub between the apps using Dapr and RabbitMq.
RabbitMq is also hosted in Aspire.
In the components folder, I have a pubsub.yaml.
How do I configure the pubsub component with the live RabbitMq address from Aspire?
This can't work with static configuration, right?
Somehow I need to grab the endpoint from Aspire and configure that in Dapr.
Any pointers are appreciated.
pubsub.yaml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: pubsub
spec:
type: pubsub.rabbitMq
version: v1
metadata:
- name: rabbitMqHost
value: localhost:1234
- name: password
value: ""
AppHost code:
IResourceBuilder<ProjectResource> napkinsApi = builder.AddProject<Projects.Napkins_API>("napkins-api")
.WithDaprSidecar(new DaprSidecarOptions
{
ResourcesPaths = ImmutableHashSet.Create("./components")
})
.WithReference(rabbitMq);