Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EndpointConfiguration can't be reused when using Installer API #6575

Open
timbussmann opened this issue Oct 7, 2022 · 0 comments
Open

EndpointConfiguration can't be reused when using Installer API #6575

timbussmann opened this issue Oct 7, 2022 · 0 comments

Comments

@timbussmann
Copy link
Contributor

timbussmann commented Oct 7, 2022

When using the Installer APIs, the EndpointConfiguration can't be reused in the same process, e.g.

await Installer.Setup(configuration);
await Endpoint.Create(configuration);

does not work because the EndpointConfiguration tracks its usage and prevents reusing it. This also makes some sense because the installer has to modify the configuration to enable installers which is currently necessary to ensure correct behavior in downstream installation logic.

In most use cases, it makes sense to run the installer in a separate process anyway and instead use Endpoint.Create/Endpoint.Start when planning to run the installation as part of the same process. This might become an issue in case Endpoint.Create should be deprecated in favor of the more explicit installation API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant