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

Specialized CritterStackHostBuilder to simplify Marten & Wolverine usage #943

Open
jeremydmiller opened this issue Jun 20, 2024 · 0 comments
Milestone

Comments

@jeremydmiller
Copy link
Member

This is a placeholder for a longer conversation. There's starting to be more and more boilerplate code for bootstrapping both a headless application or a web application with both Wolverine and Marten -- plus the overhead of registering "do this in development" vs "do this in production mode".

I'd like to maybe consider some kind of customized ApplicationHostBuilder and/or WebHostBuilder that's a bit customized for using the two tools. I'd like to drop the WolverineOptions and Marten's StoreOptions on the actual builder too. Maybe separate "hive" properties for Development vs Production.

I'm also concerned about some of the dev vs prod settings like codegen or the application assembly location where both tools have the same settings. It would be nice to centralize some of that as well.

Of course, this could be beaten with just a new AddCritterStack(opts => ) where the opts let you configure both Marten & Wolverine at one time.

I kind of like a var builder = CritterStackHost.CreateApplicationBuilder() and/or a var builder = CritterStackWebHost.****()

@jeremydmiller jeremydmiller added this to the 3.0 milestone Jul 8, 2024
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