I still experience Service Bus Emulator restarting every time I start my Aspire App Host. I add it to my app host like this:
builder.AddAzureServiceBus("servicebus")
.RunAsEmulator(emulator => emulator
.WithConfigurationFile("./sb-emulator-config.json")
.WithLifetime(ContainerLifetime.Persistent));
In the console logs, I see the following message every time I restart the app host:
[sys] Found existing Container, but calculated lifecycle key doesn't match: ContainerName = (..), ContainerId = (..)
The exact reason why the lifecycle key never matches is beyond me, but it triggers a restart of the emulator, significantly slowing down my development loop.
Originally posted by @tormodfj in #7278