Skip to content

Allow ASB connection strings without a dot to support the emulator #5334

@stevedowling

Description

@stevedowling

Describe the suggested improvement

Is your improvement related to a problem? Please describe.

When using ServiceControl with the Azure Service Bus emulator, an error is encountered: Could not start BrokerThroughputCollectorHostedService, due to initialization errors: length ('-15') must be a non-negative value. (Parameter 'length')

Describe the suggested solution

Improve the ExtractServiceBusName method to handle connection strings that do not contain a dot.

Describe alternatives you've considered

In docker compose create an alias for the emulator host name that include a dot - servicebus-emulator.local.

Additional Context

No response

Sub-issues

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