Skip to content

RavenDb: When you use AddRaenDb(name, settings) you cannot specify the port #1026

@JohnGalt1717

Description

@JohnGalt1717

Related to an existing integration?

Yes

Existing integration

CommunityToolkit.Aspire.Hosting.RavenDB

Overview

Right now the integration allows port if you pass the parameters. But if you use settings, it's impossible to specify the port that will be exposed as the endpoint for Raven Studio which results in a conflict if you are using multiple aspire projects on the same machine.

Either please add a .WithPort (which should be chainable as should .WithLicense) to the Settings construction so that it will use that to create the endpoint, or add an optional parameter to the AddRavenDb extension that takes settings. The later may be preferable to be consistent with the other Dictionary-based extension of the same name

Usage example

.AddRavenDb(name, settings, port)

Breaking change?

No

Alternatives

As of right now, I can't find a way to override the port for the endpoint.

Additional context

No response

Help us help you

No, just wanted to propose this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions