Skip to content

Service Bus Emulator doesn't respect persistent lifetime #14466

@sebastienros

Description

@sebastienros

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions